谁自动写vim寄存器?

时间:2017-02-25 12:17:37

标签: vim vim-registers

我在玩vim寄存器。用

打开vim
`vim -i NONE`

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

enter image description here

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

2 个答案:

答案 0 :(得分:1)

刚刚修好了。抓住latest nerdtree,你的困境将神奇地消失。

答案 1 :(得分:-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