Word / Code Completion in VIM

后端 未结 1 1683
情书的邮戳
情书的邮戳 2021-02-03 12:19

I know that I can get word completion through CTRL+N & CTRL+P and code completion through omnifunc with CTRL+X CTRL+O. I

1条回答
  •  执念已碎
    2021-02-03 12:37

    :set completeopt=longest,menu,preview
    

    maybe?

    (I'm not sure if your statement

    "when I press TAB, it should do nothing, because there is no more common ground than te"

    conflicts with your later statement

    "to testor after a 2nd TAB."

    It seems to me that there's no more common ground than "test" at that point... Unless you mean the first tab goes to the longest common ground, and then the subsequent tabs cycle through the other matches, in which case you're after what I have above...)

    0 讨论(0)
提交回复
热议问题