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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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