Re: psql \e and syntax highlighting in vim - Mailing list pgsql-novice

From Ireneusz Pluta
Subject Re: psql \e and syntax highlighting in vim
Date
Msg-id 4BF2A6B7.6000105@wp.pl
Whole thread Raw
In response to psql \e and syntax highlighting in vim  (Ireneusz Pluta <ipluta@wp.pl>)
List 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.


pgsql-novice by date:

Previous
From: Leif Biberg Kristensen
Date:
Subject: Re: psql \e and syntax highlighting in vim
Next
From: Ireneusz Pluta
Date:
Subject: Re: psql \e and syntax highlighting in vim