Skip to content

Instantly share code, notes, and snippets.

@systemnate
Last active January 7, 2016 17:01
Show Gist options
  • Save systemnate/34b731050063e8d9ffd5 to your computer and use it in GitHub Desktop.
Save systemnate/34b731050063e8d9ffd5 to your computer and use it in GitHub Desktop.
Learning Vim - Some useful combos I have discovered

Learning Vim - Some Helpful Commands

A lot of these come from the great book "Practical Vim".

  • daw - Delete a Word
  • <C -a> (Control + A) - If you have the cursor over the number, it will increment it. Otherwise, it will increment the first number on the line
  • <C -x> - Same as above, but decrement.
  • yyp - yank text and paste it below current line
  • yyP - yank text and paste it above current line
  • cw - change word...deletes word and places you in insert mode
  • <C -e> - scroll down
  • <C -y> - scroll up
  • <C -r>=6*35<CR> - evaluates 6 * 35 (210) and places the result where your cursor is.
  • ci" - Change In Quotes...removes all text inside the quote and puts you in insert mode so you can change it. This also works with )]} etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment