pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Lelarge <guillaume@lelarge.info>
To: Jagadeesh <mnjagadeesh@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to invoke edtor?
Date: Fri, 10 Oct 2008 11:07:40 +0200
Message-ID: <48EF1B5C.4010103@lelarge.info> (raw)
In-Reply-To: <58515b7e-0ffc-4638-922e-dbf789f6d58e@w24g2000prd.googlegroups.com>
References: <cdea81d0-340c-4d0c-87a7-07d79ed17749@r15g2000prh.googlegroups.com>
	<58515b7e-0ffc-4638-922e-dbf789f6d58e@w24g2000prd.googlegroups.com>

Jagadeesh a écrit :
> On Oct 10, 9:42 am, Jagadeesh <mnjagade...@gmail.com> wrote:
>>[...]
>> how can I invoke editor like vim from postgres? This helps me in
>> editing large and complex queries.
>> Thanks
> 
> I just got to know emacs can be used for it. Is there any other
> method?
> I am using FreeBSD.
> 

Change the EDITOR environment variable.

export EDITOR=vim

and psql will use vim as the query editor with \e metacommand.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com



view thread (5+ messages)  latest in thread

Message-ID: <48EF1B5C.4010103@lelarge.info>
Permalink:  ../48EF1B5C.4010103@lelarge.info/
Also on:    postgresql.org/message-id/48EF1B5C.4010103@lelarge.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: guillaume@lelarge.info, mnjagadeesh@gmail.com
  Subject: Re: how to invoke edtor?
  In-Reply-To: <48EF1B5C.4010103@lelarge.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox