This misses out on lots of stuff. Two weeks ago, I set aside an entire day and read a bunch of Vim tutorials. My cheat sheet filled up 2 8.5"x11" pages. Here are a few gems:<p>gg -> go to the top of the file.<p>G -> go to the bottom.<p>:set splitright -> makes :vs open the file on the right<p>:set splitbottom -> makes :sp open on the bottom<p>Ctrl-w cycles through split windows. Ctrl-[h,j,k,l] goes to the window in that direction [left, down, up, right].<p>When either :vs or :sp are invoked without filenames, they open the current buffer. Very useful for looking at 2 sections of the same file at once.<p>:tabe [file] -> how could this get forgotten? Opens the file in a new tab.<p>:set number -> shows line numbers.<p>[Line#]G -> jumps to that line.<p>O -> capital oh, inserts a blank line above the current line and goes into insert mode. Perfect for comments.<p>:set ic -> ignores case for searching, usually useful. :set noic makes searching case sensitive again. (:set no[setting] turns that setting off)<p>:set lbr -> visual word wrap.<p>Text objects are also damn cool. In visual mode (v):<p>i" -> selects the contents of quotes.<p>i( -> select the contents of parens.<p>i[ -> selects the contents of square brackets.<p>i{ -> selects the contents of curly brackets.<p>Using a instead of i for the above commands selects the delimiter also.<p>>> -> indents. << does the opposite.<p>% -> goes to matching paren/bracket. Great for debugging.<p>* -> go to next instance of current word. # to go to previous instance. Good for cycling through function definitions.<p>Edit: formatting, more commands.