Skip to content

Instantly share code, notes, and snippets.

@sjev
Last active January 16, 2019 10:40
Show Gist options
  • Save sjev/332724c8858fc6e1fc90bd9ed3c954f3 to your computer and use it in GitHub Desktop.
Save sjev/332724c8858fc6e1fc90bd9ed3c954f3 to your computer and use it in GitHub Desktop.
vim reference

Navigation

goto line     :   <nr>    
end of line       GA
start of file     gg
end of file       G

Inserting

insert begin line     I
insert cursor         i
insert end line       A

Deleting

delete line     dd
delete before   d^
delete after    D

Undoing

Command Description
u Undo the latest change.
U Undo all changes on a line, while not having
:q! Quit vi without writing.
:e! Re-edit a messed-up file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment