esc
to command mode.
i
to insert mode.yy
to copy current line.dd
to delete current line.p
to paste the copied or deleted textafter
the current line.Shift + p
to paste the copied or deleted textbefore
the current line./
searchn
search nextShift + n
search previous
- Move
- Beginning of line:
^
- End of line:
$
- First line in file: gg
- Go to number line in file:
number
and thenShfit + g
- Last line in file:
Shfit + g
- Beginning of line: