Re: psql command line editor

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Bob Gobeille <bob(dot)gobeille(at)hp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: psql command line editor
Date: 2009-08-17 18:46:31
Message-ID: 20090817184631.GK4782@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeremy Harris 2009-08-17 18:48:25 Re: Rapid Seek Devices (feature request)
Previous Message Josh Kupershmidt 2009-08-17 18:43:55 Re: Pgbench tool download