我的命令模式自动补全设置如下:
set wildmenu
set wildmode=longest,list,full
目前当我输入
:set fdm=
在命令模式下,按tab键后会出现manual,如果再次按tab键,则会出现^I。我想要将manual更改为其他的foldmethod选项,例如syntax、indent等等。有没有人知道是否可能实现或者是否有任何插件可以实现这个功能呢?
谢谢!
我的命令模式自动补全设置如下:
set wildmenu
set wildmode=longest,list,full
目前当我输入
:set fdm=
在命令模式下,按tab键后会出现manual,如果再次按tab键,则会出现^I。我想要将manual更改为其他的foldmethod选项,例如syntax、indent等等。有没有人知道是否可能实现或者是否有任何插件可以实现这个功能呢?
谢谢!
:set fdm=
后按下<Tab>
键时,你会得到插入了manual
。manual
只是所有可能值中的第一个。因此,您期望重复按<Tab>
将给您更多选择。<Tab>
键时,您获得的不是第一个自动完成选项,而是当前选项值。因此,您获得manual
,因为实际上它是该选项的默认值。连续的<Tab>
键会被字面插入,因为这种行为仅在=
之后触发。The old value of an option can be obtained by hitting 'wildchar' just after
the '='. For example, typing 'wildchar' after ":set dir=" will insert the
current value of 'dir'. This overrules file name completion for the options
that take a file name.
:help cmdline-completion
了解完整的故事。