Some Vim Movement Tips

Within-line character-based movement: h and l move you left and right one character, respectively. f[c] or F[c] will take you forward to the next or back to the previous, respectively, occurrence of character “[c] on the current line (e.g.,fpwill jump you forward to the next occurrence of "p" on the line, whileFp will jump you back to the previous occurrence of “p” on the line). t[c] or T[c] will take you forward to just before the next or back to just after the previous, respectively, occurrence of character “[c] on the current line.

Vim Regular Expression Special Characters: To Escape or Not To Escape

Vim’s regular expression dialect is distinct from many of the other more popular ones out there today (and actually predates them). One of the dialect differences that always leaves me fumbling has to do with which special characters need to be escaped. Vim does have a special “very magic” mode (that is activated by “\v” in the regular expression) that makes thing very clean and simple in this regard: only letters, numbers and underscores are treated as literals without escaping.