This happens on any file an even just typing "vi"whereas it never happened before. I suspect an update or environment variable is causing this issue
When entering vi I get this weird stuff
E488: Trailing characters: t_Sbet
E171: Missing :endif
When exiting vi I get this weird stuff
Debian/Ubuntu vi keyboard problem, up and down arrows do not work and instead make an A (Up), B (Down), C (Right) or D(Left).
The working solution
(you could also add the set nocompatible to /etc/vim/vimrc to make it system wide-will not be applied until reboot I believe):
echo "set nocompatible" > ~/.vimrc
some suggest entering this in vi but it did not work for me:
The arrow ke........
Within vi if you can't exit /etc/vim/vimrc you can type
And to turn it back on:
Many of us have a dark/black background in our terminal/shell making the default syntax unreadable, the solution is to either turn off syntax highlighting with :syntax off or to enable a special option in /etc/vim/vimrc
The "syntax on" enables the highligh........