关于 vimperator tabcompletion 的帮助

关于 vimperator tabcompletion 的帮助

我是 vim 用户。我最近为 Firefox 安装了 vimperator 插件。我很喜欢它。但我被 URL 自动完成功能困住了。我该如何浏览(或选择)自动完成结果列表?我找了答案,但找不到。有人能帮我吗?谢谢

答案1

按 (shift)TAB 来循环浏览它们。

答案2

您可能还想设置

wildoptions=自动

当你循环浏览它们时,它将显示所有可能的完成。

答案3

cnoremap <C-o> <S-Tab>
cnoremap <C-i> <Tab>
" <Tab> and <S-tab> is not typing-friendly, whereas if you use left palm to press <Ctrl> 
"+ or <CapsLock> as <Ctrl>, <C-i> and <C-o> is superb for completion, and also compliant to 
"+ normal mode <C-i> <C-o> which navigate browser history, thus strength you muscle memory.

并进一步,

cnoremap <C-j> <Down>
cnoremap <C-k> <Up>
" if you have cmdline history 'source ~/.vimperatorrc', you could type ':' (or simply ';'
"+ if you have swap them as below says), then type 'so' then press <C-k>, which 
"+ bring your old history.  "+ this relys on an easy-typing left ctrl, too.

和更多,

cnoremap <C-l> <End>
cnoremap [ <Left>
cnoremap ] <right>
cnoremap <C-n> <C-Left>
cnoremap <C-p> <C-right>
nnoremap ; :
" these keymap could be rather controversial, 
"+ you may try them out to see if they suits you or not.

相关内容