-
-
Save danhantao/11311533 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VIM的运行模式 | |
编辑模式:等待编辑命令输入 | |
插入模式:编辑模式下,输入 i 进入插入模式,插入文本信息 | |
命令模式:在编辑模式下,输入 “:” 进行命令模式 | |
VIM 使用的命令 | |
:q 直接退出vi | |
:wq 保存后退出vi ,并可以新建文件 | |
:q! 强制退出 | |
:w file 将当前内容保存成某个文件 | |
:set number 在编辑文件显示行号 | |
:set nonumber 在编辑文件不显示行号 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment