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
Written by François Pietka
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#