I also have this problem but only if I install vim-gui-common or it gets installed by some other package.
Looks like some new vimrc gets installed somewhere that causes that.
Fixes that I found:
alias vi:
vi="vi -u ~/.vimrc"
or
set the DISPLAY variable to nothing:
export DISPLAY=
Just wanted to mention this in case someone has the same problems and the aforementioned patch does not work.
I also have this problem but only if I install vim-gui-common or it gets installed by some other package.
Looks like some new vimrc gets installed somewhere that causes that.
Fixes that I found:
alias vi:
vi="vi -u ~/.vimrc"
or
set the DISPLAY variable to nothing:
export DISPLAY=
Just wanted to mention this in case someone has the same problems and the aforementioned patch does not work.