Using a Preferred Editor in VSQL
Jim Knicely. authored this tip.
\edit meta-commands let you edit the query buffer (or specified file) with an external editor. The default editor on Linux is
notepad.exe on Windows systems. Because vsql searches the environment variables VSQL_EDITOR, EDITOR, and VISUAL (in that order) for an editor to use, you can set one to your preferred editor!
[[email protected] ~]$ export EDITOR=vim
For folks that use vsql and the editor VIM, you can enable syntax highlight by adding the following lines to
if $_ == "/opt/vertica/bin/vsql" set syntax=sql endif