psql.vim : PostgreSQL hightlighting.
script karma |
Rating 58/32,
Downloaded by 3765 |
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. |
|
script versions (upload new version)
Click on the package to download.
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: 3.133.106.206
|