goto line : <nr>
end of line GA
start of file gg
end of file G
insert begin line I
insert cursor i
insert end line A
delete line dd
delete before d^
delete after D
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. |