News for hackers. Stuff that matters.
Re:A Starting Guide to VIM from Textmate by dhimes on Friday November 19, 2010 @07:44PM (#1923423)
0 and $ go to the beginning/end of line without entering insert mode

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).

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.
Re:A Starting Guide to VIM from Textmate by dhimes on Saturday November 20, 2010 @09:23AM (#1924535)
d'oh! I never even thought of that...it works great! Thank you.
Re:A Starting Guide to VIM from Textmate by dfischer on Friday November 19, 2010 @07:52PM (#1923445)
Great tip! I will be using this one.