Vim

ℹ️ 本文发布于 2020-10-23 请注意文中内容的时效性。

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