# vi 的不同模式

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

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

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://slackwarecn.gitbook.io/slackbook_cn/chapter_12/the_different_modes_of_vi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
