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
To make vim trigger a certain behavior when a key is pressed you need to map the key to a function.
For instance to map the key .
to call some type of completion when in INSERT
mode you would need to do:
:inoremap <expr> <buffer> . MyFunction()
and then the function would need to evaluate the context where it was called and present an appropriate answer to the user.
Edit: This is the basis of how clang complete
mentioned by @honk works.
I'm not sure if you can customize the behavior of omnifunc to meet your needs but on my experience, I never went too far. As @Mikhail said, you would need to keep track of things which in practice means interpreting or even running the code to some extent.