5 ms·
Awesome! I learned about zt, zb, zz, ^x ^f, and ^x ^i today. They'll definitely come in handy.
by brianto2010 16y ago
Awesome! I learned about zt, zb, zz, ^x ^f, and ^x ^i today. They'll definitely come in handy.
- Nervetattoo 16y agoIts amazing that after having read probably hundreds of Vim tutorials / guides every user is able to learn something completely new from every one of them. It sure scales. This one brought ^T and ^D for indenting in insert mode to me, and starting with -o/O as argument for opening multiple files in splits.
- zmmz 16y agoOne of the best resources for learning more about vim is the various .vimrc files on github A simple http://github.com/search?&q=vimrc http://github.com/search?&q=vimrc is a goldmine for mastery.
- limedaring 16y agoI learned cw, and it blew my mind.
- wonderzombie 16y agoYou should give ci' or ci( or ci[ or ci" a try. (You could also use ci) or ci] if you prefer.) Do it on a line where there is a pair of quotes, parens, brackets, etc.
- telemachos 16y agoAlso cit/cat in HTML.
- throw_away 16y agoalso, ciw which I use far more often than cw (don't need to be on beginning of word to change the whole thing). I like how all the ci commands always elicit a "whoa, what did you just do?" from people watching me edit.
- wonderzombie 16y agoIt's this kind of magic that attracted me to Vim in the first place. I watched a professor doing that stuff in front of class and my jaw dropped. The circle was complete when a coworker watching me modify some code had a similar reaction. (Sadly I did not convert him.)
- imurray 16y agoMore information: http://vimdoc.sourceforge.net/htmldoc/motion.html#object-select http://vimdoc.sourceforge.net/htmldoc/motion.html#object-sel...