Skip to content

Instantly share code, notes, and snippets.

@edwelker
Created March 26, 2013 05:07
Show Gist options
  • Save edwelker/5243284 to your computer and use it in GitHub Desktop.
Save edwelker/5243284 to your computer and use it in GitHub Desktop.
Vim notes

Vim Notes

  • o - new line below

  • O - new line above

  • gj/gk - move up or down display lines

  • f - go to the first instance of in a line

  • ; - go to the next instance of the previously searched

  • , - go to the previous instance " " "

vib - visual inside parens vit - visual inside tags (xml) vat - visual, tags included (all?) va", va;, va]/va[, va>/va<, etc.

Also works with change, etc.

cib - change inside parens cit - change inside tags di" - delete inside the double-quotes

Scope: ciw - change word cis, cip - sentence/para diw, dis, dip - delete the item, plus one additional space char

<C-[> is the same as ESC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment