Skip to content

Instantly share code, notes, and snippets.

@cmalven
Created March 16, 2013 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmalven/5177450 to your computer and use it in GitHub Desktop.
Save cmalven/5177450 to your computer and use it in GitHub Desktop.
Basic Vim Commands

Basic Vim Commands

  1. Two modes, insert and command
  2. Basic movement: h, j, k, and l
  3. Word movement: w, e, b
  4. Number powered movement, e.g. 5w
  5. Insert text repeatedly, e.g. 3iYes
  6. Find a character, f and F
  7. Go to matching parentheses, %
  8. Go to start/end of line, 0 and $
  9. Find word under cursor, * and #
  10. Goto line, g and G
  11. Search, /text with n and N
  12. Insert new line, o and O
  13. Removing a character, x and X
  14. Replacing letter under cursor, r
  15. Deleting, d
  16. Repetition with .
  17. Visual mode, v
  18. Visual block mode, ctrl-v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment