vim cmd
vim filename -> make the file
:q -> Exit;
i -> insert mode;
esc -> get out of insert mode;
:wq || ZZ -> save and exit;
:q! -> Dont save and exit;
u (lowercase u) -> undo;
R (Capital R ) -> redo;
gg -> go to top line
yy -> copy
p -> paste
:set number -> code line
:line number -> takes to that line number;
0 (zero key) -> start of a line
$ (dollar key) -> end of a line
No comments:
Post a Comment