Is there any way I can have intellisense enabled in VIM (gvim). I wish to use it for STL.
The auto-completion system (Intellisense) in VSCode is arguably its best feature. Lucky for us, it's been ported over to Vim!
You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.)
Forgive me for correcting you first, but IntelliSense is the name of the advanced code completion in Microsoft Visual Studio, not the general term for code completion.
To answer your question, you will probably want to use YouCompleteMe. The setup is not terribly hard with vim plugin managers, but don't forget to run the shell script that compiles the compiled component of YCM. Read the docs thoroughly, most initial problems are avoidable.
coc seems quite promising, integrates intellisense with vim (8.0 and above) and neovim
setting up ctags databases for use with omnicppcomplete
create tags for stdlibc++ and STL
$ ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -f ~/.vim/tags/stdlibcpp /usr/include/c++/4.2.4/
$ ctags -R --c++-kinds=+p --fields=+iaS --extra=+q -f ~/.vim/tags/boost /usr/include/boost/
$ apt-file list libc6-dev | grep -o '/usr/include/.*h'> ~/.vim/tags/libc6-filelist
$ ctags --c++-kinds=+p --fields=+iaS --extra=+q -I__wur -I__THROW -I__nonnull+ -f ~/.vim/tags/libc6 -L ~/.vim/tags/libc6-filelist
Here are three links you should find useful:
Vim Intellisense
C++ code completion
OmniCppComplete : C/C++ omni-completion with ctags database
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With