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 lineu
— Undo last change (can be repeated to undo preceding commands).- ctrl + R — Redo changes which were undone (undo the undos).
Last active
August 29, 2015 14:07
-
-
Save joseluisq/d53a9eaf437fada02448 to your computer and use it in GitHub Desktop.
Vim usefull commands
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment