I'm looking for a fast way to select a block of text in visual-block mode. I deal with files of this nature:
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:
I'm looking for an alternative to (4) that, similar to 'e', would move to the last row of the block. In this simple example 'jj' is not too inconvenient, but sometimes these are large blocks.
There's a similar question here , but that involves jumping a pre-determined number of lines. Is there a way to do this, again an analog to 'e', but moving row-wise instead of column-wise? Thanks!
Starting on the X
, you could do this with <C-v>}kee
:
<C-v>
– start blockwise visual mode}
– go to the end of the paragraph (that motion supposedly provides the benefit of this rather involved combo)k
– one above to exclude the empty lineee
– move the cursor from the first column to the end of the inner block.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With