Skip to content

Instantly share code, notes, and snippets.

@joseluisq
Last active August 29, 2015 14:07
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 joseluisq/d53a9eaf437fada02448 to your computer and use it in GitHub Desktop.
Save joseluisq/d53a9eaf437fada02448 to your computer and use it in GitHub Desktop.
Vim usefull commands
  • gg — Move the cursor to the first line of the file.
  • G — Move the cursor to the last line of the file.
  • dd — Delete current line.
  • dG — Delete all lines of the file.
  • yy — Copy a line.
  • p — Paste the copied or deleted text after the current line.
  • P — Paste the copied or deleted text before the current line
  • u — Undo last change (can be repeated to undo preceding commands).
  • ctrl + R — Redo changes which were undone (undo the undos).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment