I am looking for a quick way to select a block of text in visual block mode. I am dealing with files of this kind:
aaaa bbbb cccc aaaa bbbb cccc aaaa bbbb cccc dddd Xeee ffff dddd eeee ffff dddd eeee ffff gggg hhhh iiii gggg hhhh iiii gggg hhhh iiii
My goal is to select the middle block in visual block mode. I would do:
- Go to the corner (where is X)
- Ctrl-v
- 'e' to expand the selection to the end of the block.
- 'jj' or '2j' to expand the selection down to the bottom of the block.
I am looking for an alternative (4) that, like "e", will move to the last line of the block. In this simple example, "jj" is not too inconvenient, but sometimes these are large blocks.
There is a similar question here, but this involves skipping a predetermined number of lines. Is there a way to do this, again analogous to "e", but moving along the rows, not the column? Thanks!
vim
user2777293
source share