Make arrows behave in VIM like in a GUI text editor
This is wholly heretic to VIM purists, but I find it very useful for people who do use ↑ and ↓ keys and do not intend to use them as a replacement for k and j. Just add in your ~/.vimrc:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" make arrows behave like gui text editor | |
nnoremap <up> gk | |
nnoremap <down> gj | |
inoremap <up> <C-O>gk | |
inoremap <down> <C-O>gj | |
vnoremap <up> gk | |
vnoremap <down> gj |