更新时间:2022-12-27 16:22:32
这是因为 SuperTab 的默认补全是
,它向后循环(所以匹配 beforeem>,而不是在光标首先出现之后,这通常是您想要的).如文档所述,您可以通过以下方式更改:
This is because SuperTab's default completion is <C-p>
, which cycles backwards (so matches before, not after the cursor are presented first, which is usually what you want). As documented, you can change that via:
let g:SuperTabDefaultCompletionType = "<c-n>"
(把它放到你的 ~/.vimrc
中.)
(Put this into your ~/.vimrc
.)