Re: psql command line editor

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: psql command line editor
Date: 2009-08-18 10:08:14
Message-ID: h6duie$t9a$4@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2009-08-17, Bob Gobeille <bob(dot)gobeille(at)hp(dot)com> 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.

psql command-line eritor is "readline" and being a GNU product
it defaults to emacs mode :)

do "man 3 realine" for more info
search for INPUTRC - less uses vi bindings :)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ivan Sergio Borgonovo 2009-08-18 10:14:02 Re: design, plpgsql and sql injection in dynamically generated sql
Previous Message John R Pierce 2009-08-18 09:45:36 Re: 2 versions of Postgres on the same machine