VIM
Last updated
Was this helpful?
Last updated
Was this helpful?
i - switch to insert mode.
Esc - switch to command mode.
:wq - close file and write/save changes.
:q! - close file and discard changes.
dd - delete line.
d10d - delete 10 lines.
u - undo
$ - jump to EOL (end of line).
a - jump to EOL and switch to insert mode.
0 - jump to the beginning of the line.
12G - go to the line 12.
/pattern - search for pattern.
n - jump to the next search result.
N - jump to opposite direction.
:%s/old/new - replace old with new throughout the file.