Re: external editor for psql

From: Reg Me Please <regmeplease(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: "John Smith" <jayzee(dot)smith(at)gmail(dot)com>, rabroersma(at)yahoo(dot)com
Subject: Re: external editor for psql
Date: 2007-11-06 15:51:22
Message-ID: 200711061651.22789.regmeplease@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Il Tuesday 06 November 2007 16:40:27 John Smith ha scritto:
> http://www.nabble.com/need-good-editor-for-postgreSQL-tf3660882.html#a10229
>560
>
> how do u get gvim (portable?) to do syntax color highlighting for
> sql/plpgsql on files in buffer?? you're right- notepad is not enough
> (and pgedit is not free).
>
> cheers, jzs
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

1. I've looked for the PostgreSQL syntax script by Manni Wood.
(I don't remember from where, maybe www.vim.org)

2. I've installed it as /usr/share/vim/vim71/syntax/postgresql.vim

3. I've edited /usr/share/vim/vim71/filetype.vim in order to add
this line:

au BufNewFile,BufRead *.psql setf postgresql

Now all .psql files get the Posgres highlighting.

--
Reg me Please

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gokulakannan Somasundaram 2007-11-06 15:51:55 Re: Postgresql simple query performance question
Previous Message Scott Marlowe 2007-11-06 15:49:51 Re: How does the query planner make its plan?