From: | Bob Gobeille <bob(dot)gobeille(at)hp(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: psql command line editor |
Date: | 2009-08-17 19:15:55 |
Message-ID: | 858E0E7B-BE10-48C0-BEB9-433A1EA6C062@hp.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Aug 17, 2009, at 12:46 PM, Alvaro Herrera wrote:
> Bob Gobeille wrote:
>> I use PSQL to set my editor to vi. This works as expected in psql,
>> \e brings up vi and I edit away.
>>
>> Is there any way to set my psql command line editor to also use vi
>> (just like I do with "set -o vi" in bash)?
>> I can't find this in the docs.
>
> I have in my .inputrc this line:
>
> set editing-move vi
>
> and it works like a charm.
I tried this and can't get it to work.
1) I tried putting that in my .bashrc script and sourcing the file
(and also logging in again)
2) I did the set on the command line and then started psql
No luck.
I'm testing by:
starting psql
use the up arrow to bring up a previous command from the command buffer
try to reposition the cursor around the command with '0' or '$' or 'w'
or 'h'
No luck.
I don't find any mention of 'editing-move' in a search of postgresql.org
Googling editing-move turns up nothing (as far as I looked through
results).
This is 8.3 on a debian lenny system. What am I missing?
Thanks!
Bob
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2009-08-17 19:18:15 | Re: psql command line editor |
Previous Message | Tom Lane | 2009-08-17 18:59:41 | Re: ERROR: attempted to delete invisible tuple |