Based on what Johnny pointed out above, I was just surprised when I just found THIS:
$ cat /usr/share/vim/vimrc.tiny " Debian system-wide default configuration Vim set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after set compatible
ARGH !!!
No, I did not expect this. Debian (or Debian Unstable aka Ubuntu) REALLY SHOULD put a nightmare on their users by overriding the default setting using install compatible . I hope you now find out why when you go from FreeBSD, the first thing you need to do is to override the system-wide setting by putting set nocompatible in your own ~/.vimrc . Because otherwise you just create letters, and you wonβt be able to move the cursor the way you are used to.
I think this is a terrible idea. In other words, this set compatible line should be removed from the system-wide vimrc.tiny both Debian and Ubuntu, because it will annoy new users who are not as smart as knowing how to make the cursor keys work. Such things make them nano and others because of such completely meaningless blockers!
I would really like to talk to the dude who once propagated this change to a system-wide resource file in Debian. And maybe to people who fully recognized his change.
Johnny is right: on your personal computer, you can delete the specified line from the system-wide .vimrc (if any) and touch the empty .vimrc on $ HOME . Thanks so much for pointing this out and then cluttering up again. Note that you MUST have this ~/.vimrc (even if empty!), Since otherwise you would not be able to use cursors without explicitly entering set nocompatible .
syntaxerror Jan 22 '16 at 23:57 2016-01-22 23:57
source share