Vim 基础操作

12/6/2020 vim

# Vim


Vim is a greatly improved version of the good old UNIX editor Vi. Many new features have been added: multi-level undo, syntax highlighting, command line history, on-line help, spell checking, filename completion, block operations, script language, etc. There is also a Graphical User Interface (GUI) available. Still, Vi compatibility is maintained, those who have Vi "in the fingers" will feel at home.

# 新建/打开


vim ~/.zshrc


# 进入编辑模式

刚进入界面是在命令模式,不能直接编辑,要输入 i 进入编辑模式,然后就可以进行编辑操作了

# 保存&退出

编辑完成后按 Esc 返回命令模式,输入 :wq 保存并退出