Skip site navigation (1) Skip section navigation (2)

Re: psql \e and syntax highlighting in vim

From: Ireneusz Pluta <ipluta(at)wp(dot)pl>
To: John Gage <jsmgage(at)numericable(dot)fr>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: psql \e and syntax highlighting in vim
Date: 2010-05-18 14:39:51
Message-ID: 4BF2A6B7.6000105@wp.pl (view raw or flat)
Thread:
Lists: pgsql-novice
John Gage pisze:
> Please forgive this interruption.
>
> I am embarrassed to say that I do not know how to set the PSQL_EDITOR 
> environmental variable.  It would be very convenient to know how.
>
> I have attempted to do it in bash (Mac OSX), but when I do, psql seems 
> to ignore what I have done.
on freebsd and bash:

export PSQL_EDITOR='vim -c"set syntax=sql"'

To make it permanrent across logins, include that line in your 
~/.profile, or, yet better, system wide profile (like /etc/profile), if 
you have access.


In response to

pgsql-novice by date

Next:From: Ireneusz PlutaDate: 2010-05-18 18:13:06
Subject: Re: psql \e and syntax highlighting in vim
Previous:From: Leif Biberg KristensenDate: 2010-05-18 14:07:21
Subject: Re: psql \e and syntax highlighting in vim

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group