I often find I want to quickly select all the characters in an aligned column, something like this:
this.p = obj.['propery'];
this.prop = obj.['proper'];
this.proper = obj.['prop'];
this.property = obj.['p'];
Say I want to select the .
s with visual block selection (CtrlV).
If it's not immediately obvious how many rows there are (perhaps there are more), I typically use { or } once in visual block select mode to jump the appropriate distance. However, they go one line too far; if the following line is blank the cursor move to the first column, selecting far more than I want.
Is there an equivalent to { or } which jumps to the last line in the paragraph, while maintaining the current column?
My question is similar to How do I move by paragraphs, but end up *in* the paragraph? but the answer given there (mapping j
or k
after a {
or }
) won't work for me; the column will be lost.
'relativenumber'
can be a great help in getting it right the first time around.346G
) or the quickfix window. You can also use both'relativenumber'
and'number'
together, in which case it will show the absolute line for the current line, and relative around it. But yeah, I'd be curious to see if anyone has a better suggestion on how to handle this!