1

我正在玩 vim 寄存器。打开vim

`vim -i NONE`

我可以在没有任何注册的情况下打开 vim。然后我运行“:NERDTree”命令。执行此操作后,我可以看到这些寄存器:

在此处输入图像描述

现在我的问题是。为什么注册ho存在?寄存器中究竟存储了什么?

4

2 回答 2

1

这刚刚被修复。抓住最新的书呆子树,你的烦恼就会神奇地消失。

于 2017-02-25T15:27:19.723 回答
1

你需要知道怎么玩:

-i {viminfo}    The file "viminfo" is used instead of the default viminfo
                file.  If the name "NONE" is used (all uppercase), no viminfo
                file is read or written, even if 'viminfo' is set or when
                ":rv" or ":wv" are used.  See also |viminfo-file|. 
                {not in Vi}

这与寄存器无关。相反,vim 会话不会使用viminfo来存储标记或保存命令历史记录。

关于寄存器oh你会得到答案:help quote_alpha

4. Named registers "a to "z or "A to "Z                 *quote_alpha* *quotea*
Vim fills these registers only when you say so.  Specify them as lowercase 
letters to replace their previous contents or as uppercase letters to append
to their previous contents.  When the '>' flag is present in 'cpoptions' then
a line break is inserted before the appended text
于 2017-02-25T13:58:57.343 回答