Wednesday, 11 September 2013

How to Re-Indent visually selected column in Vim

How to Re-Indent visually selected column in Vim

I have some text like,

I would like to move variable2,var3 and var4 so that all four variables
are aligned together. I am able to visually select the column, using
CTRL-V j j w. But after that how can I reindent or delete the extra spaces
in front of variable2, var3 and var4.
Please not that moving variable1 is not an option as there are multiple
lines that are aligned with variable1.
Thanks.

No comments:

Post a Comment