Skip to content

Instantly share code, notes, and snippets.

@danhantao
Created April 26, 2014 04:11
Show Gist options
  • Save danhantao/11311533 to your computer and use it in GitHub Desktop.
Save danhantao/11311533 to your computer and use it in GitHub Desktop.
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