matritayax.blogg.se

Vim supertab context omni
Vim supertab context omni














It needs to be stored in one of the locations described in :h tags and it will provide suggestions ( i_CTRL-X_CTRL-]) and jump to definitions ( CTRL-]) without any additional configuration. For example, ctags -R -n -sort=yes -c++-kinds=+p -fields=+iaS -extras=+q -f tags /usr/include/c++/ will create a ctags file from your c++ libraries. However, this must be used carefully as it can be a slow process (see :h file-searching).Ī faster alternative, as you have found, is the use of tags.

vim supertab context omni

If your path is pointing to the directory in which your C, C++ libraries can be found (usually, within /usr/include/, /usr/local/include and /user/local/share), it will traverse recursively all the files based on your :h include command. Having said that, the built-in support for C and C++ in vim is already really good even without plugins. For what it is worth, I just installed that plugin, created the required ctags file and it seems to be working correctly. Therefore, as long as your own ctags file is up-to-date, it should provide good and accurate suggestions. I believe the reason OmniCppComplete hasn't been updated in so many years is because it relies on ctags files.

VIM SUPERTAB CONTEXT OMNI CODE

I realize that i can always get back to the comfort of modern LSP in combination with a LSP client plugin, but what be the hard-core vim way to continue? The fewer plugins the better, right? Do vim ninjas among you say C style omni-complete is good for 80% of the cases? Or do you toss auto complete all together, claiming it hinders your learning progress of the code base? Given we get a new standard every 3 years since 2011, it feels that any C++ related tool should get a facelift every now and then.

vim supertab context omni

When looking further for omni-complete for C++, I find projects like OmniCppComplete but the last available version is quite dated: 2007. :h compl-omni-filetypes lists C as supported language and this is already a good start. Among several auto-completion flavours that vim offers, one can find "omni-completion", a context specific auto completion style with support for multiple languages. Lately, however, having been influenced by a few articles from, i would like to explore a more ascetic auto-completion setup. I have used vim for C++ development for quite a while now where, for auto completion, i would either use YCM or, lately, the combination of LanguageClient-neovim and clangd.














Vim supertab context omni