Vim: vim behaves as vi and drives you nuts – how to fix
For some reason vim on Debian went crazy and stopped worked as vim. This is how to make it work like vim instead of vi.
cp /usr/share/vim/vim74/vimrc_example.vim ~/.vimrc
and change
" In many terminal emulators the mouse works just fine, thus enable it. if has('mouse') set mouse=a endif
to
" In many terminal emulators the mouse works just fine, thus enable it. if has('mouse') set mouse=r endif
Hooray.