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: Ireneusz Pluta <ipluta(at)wp(dot)pl>
Cc: damien clochard <damien(at)dalibo(dot)info>, pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: psql \e and syntax highlighting in vim
Date: 2010-05-18 13:58:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
Ireneusz Pluta pisze:
<blockquote cite="mid:4BF298D0(dot)4000205(at)wp(dot)pl" type="cite">
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
Or invoked with its -c"set
syntax=sql" command line switch. So, the whole question is how to have
psql to tell vim which particular syntax to use, in one of these ways.<br>
OK, after real RTFM of man psql in this area:<br>
              Tip: psql searches the environment variables 
              TOR,  and VISUAL (in that order) for an editor to use. If
all of<br>
              them are unset, vi is used on Unix systems, notepad.exe
on  Win-<br>
              dows systems.<br>
I found the solution by setting the PSQL_EDITOR to 'vim -c"set
It works now the way I want.<br>

Attachment: unknown_filename
Description: text/html (1.1 KB)

In response to


pgsql-novice by date

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

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