vim&visudo
Insert mode
Command line mode
Save your changes (write):
:w
Quit out of vim:
:q
Quit without saving changes:
:q!
You can also combine commands to run them together.
:wq
CTRL-R to redo
Save your changes (write):
:w
Quit out of vim:
:q
Quit without saving changes:
:q!
You can also combine commands to run them together.
:wq
CTRL-R to redo