Re:Vim Cheat Sheet - For Programmers By Programmers
by dhimes on Friday September 09, 2011 @10:32AM
(#2978229)
->For instance, dt' will delete characters until it matches a'. But also, dtf' will delete characters until it matches a' but also delete that '.
dtf' should be df' in the above
Re:Vim Cheat Sheet - For Programmers By Programmers
by phzbOx on Saturday September 10, 2011 @12:28AM
(#2980800)
ops, yes, thank you.
Re:Vim Cheat Sheet - For Programmers By Programmers
by billjings on Friday September 09, 2011 @10:59AM
(#2978337)
Worth noting: cib == ci), and ciB == ci}.
Also, "a" instead of "i" includes the enclosing markers. Not really that useful for braces and parens, but for strings da" is great. da[ is pretty great for Obj-C, too.
For instance, dt' will delete characters until it matches a'. But also, dtf' will delete characters until it matches a' but also delete that '. T and F goes backward.. you can put a number in front of the command to delete until it matches the nth ', etc. It looks like a lot of command.. but it's all the same basic ideas.
So to answer your question, yes you can use vim effectively with less than 10 commands.. but once you know those 10, it's a matter of seconds to learn 100+ which would make you extremely more effective.
And as my "top" commands.. I'd say definitely: