Re:A Starting Guide to VIM from Textmate
by burgerbrain on Friday November 19, 2010 @08:41PM
(#1923559)
If your aim is to indent/de-indent text, try the > and < commands (in normal mode).
I also find that selecting large blocks of text then using the = command to autoindent everything is exceedingly useful.
Re:A Starting Guide to VIM from Textmate
by dhimes on Saturday November 20, 2010 @07:51AM
(#1924412)
do you know how to highlight a block then double-indent? I can't make that work. With a block highlighted, I only know how to indent one ts at a time (then re-hightlight, etc.).
Re:A Starting Guide to VIM from Textmate
by ollysb on Saturday November 20, 2010 @08:58AM
(#1924494)
You can use the universal "repeat last action" command: just hit . You can hit . as many times as you like and it will keep indenting.
You might find ^ more useful than 0 for indented code as it takes you to the beginning of the text on the line (like the regexp).