4 ms·
vim does do code completion ... For example, in my gvim, control-p shows the autocomplete list.
by veyron 15y ago
vim does do code completion ...
For example, in my gvim, control-p shows the autocomplete list.
- CJefferson 15y agoDoes it work with the boost headers? Or member functions? Eclipse and VS can handle these both with ease. If you think it does, I'd be interested to know your setup, as I've never been able to get such a thing to work effectively in vim.
- burgerbrain 15y ago- Complete namespaces, classes, structs and union members. - Complete inherited members for classes and structs (single and multiple inheritance). - Complete attribute members eg: myObject->_child->_child etc... - Complete type returned by a function eg: myObject->get()->_child. - Complete the "this" pointer. - Complete a typedef. - Complete the current scope (global and class scope). - Complete an object after a cast (C and C++ cast). - Complete anonymous types (eg: struct {int a; int b;}g_Var; g_Var.???). It also works for a typedef of an anonymous type. http://www.vim.org/scripts/script.php?script_id=1520 http://www.vim.org/scripts/script.php?script_id=1520 (disclaimer: I don't use it, I turn off completion everywhere I go.)
- uxp 15y agoClang_Complete is another completion plugin, though it is not compatible with OmniCppComplete. http://www.vim.org/scripts/script.php?script_id=3302 http://www.vim.org/scripts/script.php?script_id=3302
- CJefferson 15y agoThanks for the suggestion, but it uses ctags, which simply chokes on boost.
- burgerbrain 15y agoTry uxp's suggestion then, which doesn't use ctags.
- calloc 15y agoI use clang_complete on Mac OS X and it is a dream. It works without issues on the Boost libraries and overall is very fast and efficient.