sponsor Vim development Vim logo Vim Book Ad

psql.vim : PostgreSQL hightlighting.

 script karma  Rating 58/32, Downloaded by 3385  Comments, bugs, improvements  Vim wiki

created by
Devdas Bhagat
 
script type
color scheme
 
description
This sets up highlighting for *.psql files, which contain PostgreSQL SQL.
You may also need to make an entry for *.psql in your filetype.vim .
 
install details
Instructions for a global install.
Add psql.vim to your syntax directory. (/usr/share/vim/vim61/syntax/ under RH 7.3, your install location may vary).
Then add these two lines to filetype.vim
" PostgreSQL
au BufNewFile,BufRead *.psql                    setf psql

Please report bugs and desired features.
Currently, most keywords  seem to work.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
psql.vim 0.04 2004-04-17 5.7 Devdas Bhagat Added procedural, trusted, language, handler and validator as keywords
psql.vim 0.03 2004-04-05 5.7 Devdas Bhagat Added a few more keywords, colorised the mathematical operators.
Operators will now be highlighted like functions instead of statements.
psql.vim 0.02 2004-04-03 5.7 Devdas Bhagat Added support for aggregates and most functions. Right now, the functions are from 7.3.3, I will update to 7.4 later today, hopefully.
Thanks to David Fetter for coming up with a neat way to obtain the function listing.
psql -E \df
Another hint from David:
set $PSQL_EDITOR to vim -c ':set ft=psql' to obtain the same highlighting in psql.

psql.vim 0.01 2004-04-03 5.7 Devdas Bhagat Initial upload
ip used for rating: 44.223.70.167

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github