PlankTon
PlankTon

Reputation: 12605

Vim: How to set up an efficient autocomplete configuration?

I've been using Vim for a while now and love it, but one thing I've noticed when I use other editors is that I've never really got autocomplete working with much efficiency. I have supertab & snipmate working, I have tags for whatever language I'm using set up, but somehow it seems a little too cumbersome to use all that much, and apart from long method names I typically just avoid autocomplete.

Does anyone have fast, comprehensive autocomplete funcitonality set up in vim? Specifically:

So, any tips on setting up an efficient, comprehensive autocomplete configuration in vim? I know this question is a little vague - but if anyone has an overview of how they autocomplete well, and/or a link to a guide, it would be much appreciated.

Upvotes: 23

Views: 7733

Answers (3)

Pankaj Agarwal
Pankaj Agarwal

Reputation: 107

YouCompleteMe plugin by Valloric is a very decent plugins for autocomplete and suggestion. It contains support for all the major languages and you can extend the feature with setting up different engine . it also comes with syntax checker so u don't have to use Syntastic separately

For setup details visit this link https://github.com/Valloric/YouCompleteMe

Upvotes: 2

PlankTon
PlankTon

Reputation: 12605

Just thought I'd come back and mention that I finally found something I like: A customised version of NeoComplCache. Nice auto popup, everything integrated pleasantly into 'tab', and with a bit of customisation plays nice with snippets.

http://www.vim.org/scripts/script.php?script_id=2620

Upvotes: 6

ggVGc
ggVGc

Reputation: 446

This is very dependant on your working domain. Vim is a text editor with the ability to interface with intelligent text-aware mechanisms.

If you are using java there is eclim, which is the eclipse backend together with a vim plugin for the frontend.


For C or C++ there is the plugin OmniCppComplete
It works by scanning the headers in the paths you have set up in vim (see :h path), and works very well imo.

If you have to press Ctrl-X_Ctrl-O for omnicompleteion, then your supertab config seems a bit broken. It should try omni or filename completion first, and then fall back to word completion.

Upvotes: 2

Related Questions