Follow @vimtips on Twitter. Please suggest a tip or two here, as well.
| ggVG= will auto-format the entire document |
| '0 opens the last modified file ('1 '2 '3 works too) (via @grasselli) |
| [I (that's bracket-open, capital-i) shows lines containing the word under the cursor (via @nvie) |
|
In insert mode do Ctrl+r=53+17 |
| "_d will delete the selection without adding it to the yanked stack (sending it to the black hole register). http://is.gd/do1Dt |
| "2p will put the second to last thing yanked, "3p will put the third to last, etc. http://is.gd/do1Dt |
| :wa will save all buffers. :xa will save all buffers and exit Vim. http://is.gd/do1qZ |
| After performing an undo, you can navigate through the changes using g- and g+. Also, try :undolist to list the changes. http://is.gd/cT0dc |
| You probably know that 'u' is undo. Do you know that Ctrl-R is redo? |
| ci{ – change text inside {} block. Also see di{, yi{, ci( etc. http://is.gd/cT0dc |