> For the complete documentation index, see [llms.txt](https://slackwarecn.gitbook.io/slackbook_cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://slackwarecn.gitbook.io/slackbook_cn/chapter_12/the_different_modes_of_vi.md).

# vi 的不同模式

一个常常让 vi 的新用户沮丧不已的事情是：如果不带任何参数运行 `vi`，屏幕上会出现这样的东西。

```
~
~
~
~
~
~
~
~
~
~
~
                                     Command
```

这时用户敲击键盘并希望文档中可以回显他刚才的输入。然而发生的事情会让他感到莫名其妙。原因很简单，vi 有不同的操作“模式”（modes），例如命令模式（command mode）和插入模式（insert mode）。默认进入的是命令模式，在此模式下每次按键都会执行特定的动作，例如移动光标、删除或复制文本等等。
