Yank supports standard move commands. Use y 5 l (<- - lowercase L)
And if you want to print 5 characters back, use y 5 h .
Now, if you feel lazy, rearrange this particular sequence into a key combination, for example:
:nnoremap <Cl> y5l
In this case, "yank 5 to the right" is displayed on Ctrl + l (lowercase L).
If you want, you can also use Space instead of l to carry characters forward (examples: y Space for one character or 5 y Space for 5). It may seem to some people that it will be faster or easier than hitting l .
voithos Sep 22 '11 at 19:57 2011-09-22 19:57
source share