Last Updated: February 25, 2016
·
1.348K
· fpietka

Syntax highlighting using Postgresql and VIM

To have syntax highlight of your queries using VIM with Postgresql interactive terminal, add the following to your VIM configuration file:

autocmd BufNewFile,BufRead psql* set filetype=sql

and it can be shorten to:

au BufNewFile,BufRead psql* setf sql