I want to enable omnifunc in my MacVim whenever I start to type in a few of leading words, such that whenever I type np., the completion list pops up to show me the candidates (e.g. np.random, np.trunc, etc...).

In default, you are bothered to type in <c-x><c-o> to make the list pop up. In the post over Stack Overflow, some users assign the combination to different keymaps (e.g. just type in : to make the list shown up).

However, I want to call the list without typing in any keys, much like you can do in Xcode. I also want to get out of the suggestion if I don't need it, much like in Xcode, which I think is not feasible in standard settings.

How can I make it in Vim?

I use Vim 7.4 and neocomplete.

  • 1
    You will need a plugin for that. Something like neocomplete or youcompleteme. Also, if you want IDE features, you should probably use an IDE. – romainl Dec 15 '15 at 12:20
  • 1
    @romainl Ah, I use neocomplete, which I failed to mention. Updated. – Blaszard Dec 15 '15 at 12:23
  • 1
    Well, that's kind of the whole point of neocomplete so, if it doesn't work for you you will need to ask another question or head to the plugin's issue tracker. – romainl Dec 15 '15 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.