Re: Visual block and indentation
Good day
I have a little bit of a trickier enhancement / compatibility request...
If you have a block of text and you visual block select on a part of the text at a point not at the beginning of the line, eg, in the text below, visual block selecting the "ll"'s in "hello":
hello world
hello world
hello world
and then indent (or outdent), using ">" (or "<" respectively), then vim will indent / outdent the text to the right of the start of the selection block, resulting in (with the above text and the case of an indent):
he llo world
he llo world
he llo world
Outdenting after selecting the "ll" column again will close the gap, but, of course, not allow further outdenting past that since to do so would result in the "ll" column overwriting something to the left of it.
I would REALLY appreciate the inclusion of this compatibility feature because it's really useful to use block select to do something like convert:
double mdblMinY;
double mdblMaxY;
double mdblLatestY;
double mdblTotalY;
double mdblAverageY;
to
double mdblDataMinY;
double mdblDataMaxY;
double mdblDataLatestY;
double mdblDataTotalY;
double mdblDataAverageY;
by first indenting from after the "mdbl" parts and then using visual block select and 's' to replace the blank column with "Data". I don't know if there's a better way to do this in vim -- this is just the way that I'm used to doing it and it's not an uncommon thing for me to do with my text.