Basic Vim Command
What is vi? UNIX系统下默认的编辑器 vi的操作模式 Command mode 输入的字符都是命令( 区分大小写 ),也可以进入Insert mode Insert mode 输入的字符来修改文件内容 进入vi vi filename 退出vi :x<Return> quit vi, writing out modified file to file named in original invocation :wq<Return> quit vi, writing out modified file to file named in original invocation :q<Return> quit (or exit) vi :q!<Return> quit vi even though latest changes have not been saved for this vi cal ZZ Exit, saving changes 命令模式下移动光标位置 j or <Return> [or down-arrow] move cursor down one line k [or up-arrow] move cursor up one line h or <Backspace> [or left-arrow] move cursor left one