I have a Fresh Ubuntu installation. I have no personal dot-files active.
I run unsuccessfully \e file.sql in Psql, when I have the following in my .bashrc, since Nano opens instead of Vim
export VISUAL=/usr/bin/vim
export EDITOR=/usr/bin/vim
export PSQL_EDITOR=/usr/bin/vim
I run the same command when I have vim in place of PATH/vim in .bashrc for the above three commands.
I get vim when I cat $EDITOR, for instance.
The problem is in environmental variables likely. However, I am not sure where.
How can you have Vim as Psql's editor?