tags:

views:

50

answers:

1
+1  Q: 

Vim mapping ctrl-k

I use k to move cursor line down in a file.
but i want to add that when i press ctrl-k, 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 enter a spacebar.

how do i stop it from entering the spacebar?

+2  A: 

You have a space following the 7k in your nmap.

:nmap <C-k> 7k works correctly for me, but if I put a space after the 7k then I reproduce the behavior you've described.

Mark Rushakoff

related questions