Re: how to invoke edtor?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jagadeesh a écrit :
> On Oct 10, 9:42 am, Jagadeesh <mnjagade...@xxxxxxxxx> 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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux