Can Vim apply shiftround to a block as a whole instead of linewise? -
i shiftround option in vim, there couple of situations doesn't work well. instance, take example:
f(x, y) selecting 2 lines , shifting > , 2 lines selected gives me (and shiftwidth set 4):
f(x, y) when wanted:
f(x, y) in other words, vim advanced each line of block next tabstop, when wanted insert same amount of inserted on each line--but want least indented line end on next tabstop.
is there easy way behavior in vim? goal have work < , > (with visual selection) rather other workarounds.
ctrl+v, select vertical column before text need shift (j in case of 2 lines), shift+i, insert needed number of tabs or spaces, esc.
you can use method insert arbitrary text, example can insert # or // comment code. more info in :help blockwise-operators.
Comments
Post a Comment