I use K to move cursor line down in a file.
but I want to add a mapping so that when I press CtrlK the cursor moves to move 7 lines down in a file.
I have put this in my .vimrc file:
nmap <c-k> 7k
but what that does is move 7 lines down and then it enters a spacebar.
How do I stop it from entering the spacebar?
You have a space following the
7kin your nmap.:nmap <C-k> 7kworks correctly for me, but if I put a space after the7kthen I reproduce the behavior you’ve described.