首先:Vim是Vim,而不是Vi。 它们有许多共同之处,但差异更大。 如果你绝对想从一本书中学习,请上a book about Vim, not 的书籍。
Your problem, beside using the wrong book, is that you don t read it carefully. ^V
is not the ^
character followed by the V
character, it is the literal representation of CTRL+V
. In the given example, you are told to…
以<代码>进入指挥系统::
:
map q :wq
:
:map q :wq
press ^V
(CTRL+V
) two times (maybe a Vi thing, you only need to do it once in Vim),
加入:
:map q :wq^M
另有一段时间执行你刚才所说的指挥。
实际绘图是:
map q :wq^M
www.un.org/spanish/ecosoc 性质:
map q :wq^V^VCR CR
www.un.org/spanish/ga/president 毫不奇怪的是,你的测绘工作正在做各种cra事,因为它纯属虚伪。
As for why the file created by your broken mapping is behaving the way it does? If you do something like:
$ rm ^V^VCR CR
或
$ rm ^V^VCR CR
然后按预期删除该档案,但从您的回忆中看,这并不明确:实际上是。
一些建议:
- Use a Vim book to learn how to use Vim.
- Your computer already comes with a terminal emulator, use it. You are not comfortable enough with all this to fully understand the pros and cons of installing an alternative.
- Just use the built-in
ZZ
next time.