Re:Everyone Who Tried to Convince Me to Use Vim Was Wrong
by ralph on Friday July 30, 2010 @01:33PM
(#1561875)
vi commands $, %. and ^ are conveniently placed on QWERTY; Shift-4/5/6. If you use the one true style of braces for your C code then you can move through if-else-if chains quickly. $ moves to the end of the line, placing you on the open brace, % moves to the matching close brace at the start of the next
} else if (...) {
line, repeat... To go the other direction, ^ moves you to the first non-white character, the close brace.
Definitely gratifying to hear this guy's experience, BTW. I got religion when it comes to Vim. If you spend 8-10 hours a day editing text, it makes sense to put some thought into how you are doing it. Small efficiency gains add up.