> Suppose I have text file that includes a vertical column of zip codes.
> I want to yank 10 codes so I move to the desired upper left corner and
> hit ctrl-v, then move the cursor down 10 rows and over 5 columns. Now
> I have selected a 5x10 set of characters. Suppose I realize I started
> in the wrong spot and instead wanted to start *down* three rows. I
> know I could use the o command to switch ends and move the endpoint
> rows up and down... but my dream is to instead be able to hit
> something like ctrl-j to move the 5x10 selection window around without
> modifying the size of the 5x10 window. Anyone know how to do it?
Is this what you're looking for?
vnoremap <C-J> jojo
vnoremap <C-K> koko
No comments:
Post a Comment