Search Postgresql Archives

Re: For vim users: Syntax highlighting for PostgreSQL

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

 



+----[ Devrim GUNDUZ <devrim@xxxxxxxxxxxxxxxxx> (27.Apr.2006 23:39):
|
| Hi,
| 
| I just wrote a pgsql.vim file for vim users. It helps you to colorize
| the file which contains PostgreSQL SQL keywords:
| 
| 	http://www.gunduz.org/postgresql/pgsql.vim

Devrim,

thanks for contributing this!

| In order to use this file, first edit filetype.vim file and add 
| 
| " PgSQL
| au BufNewFile,BufRead *.pgsql                   setf pgsql
|
| to the relevant part. We will need to do this until this file becomes an
| official part of vim.

This is not necessary. You can add it to your ~/.vimrc and
it will work. If you want to set this system wide you can
include the above command inthe system wide vimrc (in my
FreeBSD box this is /usr/local/share/vim/vimrc)

| Then put pgsql.vim to the syntax directory of vim
| (/usr/share/vim/vim64/syntax on my Fedora Core 5). After you rename your
| sql file as filename.pgsql, the syntax highlighting will be enabled.
|
+----]

Again, you can also put it in ~/.vim/syntax/ and it will
work.

Just wanted to add that without have root access anyone
can still benefit from your work!

Thanks again!

Fernan


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux