Is there an autocompletion plugin for vim? What are my options here?

At the moment I'm using AutoComplPop, but it has bad integration with snipMate that I use and dead slow on Ruby files (even < 100 lines).

I've seen a couple of other plugins, but they are dead since at least more than a year. So, any ideas?

link|improve this question
ACP works very very well here and I have no problem with SnipMate. There's a settings (let g:acp_behaviorSnipmateLength=-1 see :help autocomplpop) you are supposed to add to your .vimrc, did you add it? – romainl Oct 6 '11 at 5:16
feedback

2 Answers

I believe vim has one built-in called OmniComplete. In insert mode use ctrl+x,ctrl+o.

Otherwise you can do keyword completion from insert mode with ctrl+n. When you invoke it it will give you a dropdown displaying possible matches of words found in the file you're editing, as well as found from other files you have open. Keep hitting ctrl+n to cycle through the options. When you come to the word you want, just continue typing like normal.

If you can't find the word you want, ctrl+n will eventually cycle off the list and you can keep typing, or you can hit ESC and then bcw to go back to the start of the offending word and change the word to the one you wanted.

link|improve this answer
feedback

I use neocomplcache with the snipmate + snipmate snippets

let g:neocomplcache_snippets_dir='~/.vim/bundle/snipmate-snippets/snippets'

you can see my vimrc

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.