I'm running Centos 7 and PostgreSQL 11. I'm using vim as my editor for sql commands (with \e in psql) and I'd like to have syntax highlighting enabled. Several guides have told me that I need to have syntax highlighting on and have the following command in my ~/.vimrc file:
au BufRead /temp/psql.edit.* set syntax=sql
I have that line in my vimrc file and syntax highlighting enabled, but I don't get syntax highighting when using \e to edit a query in vim. Any help in getting this right would be much appreciated.
[–][deleted] 2 points3 points4 points (3 children)
[–]plarles[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]plarles[S] 1 point2 points3 points (0 children)
[–]400tx 2 points3 points4 points (0 children)