Re: how to invoke edtor?

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: how to invoke edtor?
Дата
Msg-id 48EF1B5C.4010103@lelarge.info
обсуждение исходный текст
Ответ на Re: how to invoke edtor?  (Jagadeesh <mnjagadeesh@gmail.com>)
Список pgsql-admin
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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Jagadeesh
Дата:
Сообщение: Re: how to invoke edtor?
Следующее
От: Julius Tuskenis
Дата:
Сообщение: Re: can I update multiple table at a time?