vi
filename edit
Moving
0 (zero) move to begin of line
G Move to last line
1G move to first line
Edit
u undo what you just
did
i insert text before
cursor (until <ESC> )
a append text after
cursor (until <ESC> )
Stop
:x exit (and and
save)
:wq exit (and save)
:q! exit (and don’t
save)