I frequently have inline comments for variables:
var1 = 0 # Var 1
var2 = 0 # Var 2
var3 = 0 # Var 3
var4 = 0 # Var 4
(This is in python, for example, but this question applies to C-Style //
just the same.)
Sometimes it happens that as I develop I have to add new variables and they may end up being longer than the previous variables. I then have to refactor my white space from
var1 = 0 # Var 1
var2 = 0 # Var 2
var3 = 0 # Var 3
var4 = 0 # Var 4
variable = 234 # Var
to
var1 = 0 # Var 1
var2 = 0 # Var 2
var3 = 0 # Var 3
var4 = 0 # Var 4
variable = 234 # Var
or thereabouts.
Right now I line-by-line it ciw
with the cursor in the white space and then tab a lot. Is there a simpler way to do this? >w
and >W
just indent the line (it honestly seems like >
only indents line by line so I don't understand the 'subject-verb' point of it (it almost seems like >>
is redundant)).
I would really like something built-in, like I would have expected >w
to have worked, but if that's not the case, I suppose a plug in will do.