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.