Vim: Making Auto-Completion Smarter

后端 未结 7 655
忘了有多久
忘了有多久 2020-12-22 23:49

I use ctags, taglist, etc., to have auto completion in Vim. However, it is very limited compared to Visual Studio intellisense or Eclipse auto-completion. I am wondering whe

7条回答
  •  感情败类
    2020-12-23 00:15

    In any case, I recommend YouCompleteMe (YCM). It provides (fuzzy) matching of identifiers of your current file, as well as path-completion, integration with external completion engines,...

    ad 1)
    If you like the semantic completion of eclipse, use eclim to integrate vim with eclipse. (alernatively use another semantic engine for YCM)

    ad 2)
    These 2 play nicely together btw.,: YCM can even provide the function definition (= parameter list) of the recently completed function!

    ad 3)
    that's what YCM does anyways

    ad 4)
    not quite sure, what you mean by that one. never used ctags!

    P.S.: I strongly recommend using UltiSnips and Tagbar (and if you like UndoTree) additionally, what makes vim a perfect IDE for me.

提交回复
热议问题