Last Updated: February 25, 2016
·
358
· ckafi

Scroll window in vim

We all know arrow keys are evil and you will go to vim-hell for using them. So just remap them to do something useful, like going up/down one line and also scrolling the window in that direction:

nnoremap <Up> k<C-Y>
nnoremap <Down> j<C-E>