我正在玩 vim 寄存器。打开vim
`vim -i NONE`
我可以在没有任何注册的情况下打开 vim。然后我运行“:NERDTree”命令。执行此操作后,我可以看到这些寄存器:
现在我的问题是。为什么注册h
和o
存在?寄存器中究竟存储了什么?
我正在玩 vim 寄存器。打开vim
`vim -i NONE`
我可以在没有任何注册的情况下打开 vim。然后我运行“:NERDTree”命令。执行此操作后,我可以看到这些寄存器:
现在我的问题是。为什么注册h
和o
存在?寄存器中究竟存储了什么?
这刚刚被修复。抓住最新的书呆子树,你的烦恼就会神奇地消失。
你需要知道怎么玩:
-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
来存储标记或保存命令历史记录。
关于寄存器o
,h
你会得到答案: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