Hacker News new | ask | show | jobs
by brianto2010 5708 days ago
Awesome! I learned about zt, zb, zz, ^x ^f, and ^x ^i today. They'll definitely come in handy.
2 comments

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

One of the best resources for learning more about vim is the various .vimrc files on github

A simple http://github.com/search?&q=vimrc is a goldmine for mastery.

I learned cw, and it blew my mind.
You 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.

Also cit/cat in HTML.
also, 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.
It'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.)