Fixed some awful order dependent issues in vimrc

Found the bug that caused the arrowkeys to misbehave, apparently the
noesckeys and nocompatible options override each other and the last one
won. I replaced noesckeys with ttimeoutlen=1 that makes them both work
in harmony.

Also a bunch of refactorings and deletes of unneeded stuff.