vnoremap > >gv
Now highlight a column of text using blockwise visual selection (ctrl-v on Unix platforms, ctrl-q on Windows) and then hit > or <
>>>> (would shift four shiftwidths to the right)
You can also use traditional ex mode to accomplish the same. Go to the first column of a given block and type ma (in normal mode) to set mark a. Go the the end of the block you want to indent, first column, and set mark b by typing mb (in normal mode). Now issue the following ex-command.
:'a, 'b>> (shift two columns to the right)
2 comments:
I most often just use a count with the >> command:
5>>
(indents 5 lines)
Casey
This is a very old post but in case someone comes:
Without doing any configuration you can obtain the same results by pressing '.' (dot).
For example:
>....
Post a Comment