So I have this in my .vimrc
file:
nnoremap <A-j> 5j
nnoremap <A-k> 5k
What I expected this to do was allow me to press Alt+j / Alt+k in order to move up and down 5 lines at a time, or use 5<A-j>
to move 25 lines down (5 * 5 = 25). Instead, it does nothing at all. Could anyone let me know what I've done wrong here?
EDIT: I've solved this by using the code from: https://stackoverflow.com/a/10216459/2061838