When cursor is at middle of screen and i scroll down, the cursor moves upwards on the screen. I don’t want it to do that.
How can i scroll without changing cursors on-screen position?
Solution, added after answer:
noremap <C-k> 14j14<C-e>
noremap <C-l> 14k14<C-y>
If you want to both move the cursor and the viewport with the cursor anywhere in the screen, perhaps you should set up some custom key bindings to do both at once.
Such as:
This will move the cursor down (
j) and move the viewport (Ctrl-e) whenever you pressCtrl-Alt-u(only in normal mode).