xavierd / clang_complete

Vim plugin that use clang for completing C/C++ code.
http://www.vim.org/scripts/script.php?script_id=3302
1.96k stars 308 forks source link

clang_complete only automatically complete after ->, ., :: ? #563

Open oronge opened 6 years ago

oronge commented 6 years ago

can clang_complete complete after other charachers ?

xaizek commented 6 years ago

It can't on its own, but see #561 for two plugins that can make clang_complete work this way.

oronge commented 6 years ago

thank you ! but, here i refer to C/C++, for example, if I just input "str", can it complete string use clang?

In addition, if I input "std::stri", and type "Backspace" to delete the last character 'i', the complete will disappear, it won't appear even though I input 'i' again, is there any way to reserve it ?

xaizek commented 6 years ago

Neo/mucomplete make completion appear after you type several characters automatically. If you just want to trigger the completion manually, press Ctrl-XCtrl-U.

oronge commented 6 years ago

Thanks! I'll try it. It seems clang_complete doesn't complete for header files ? If I input

include <ios

can make it complete "iostream" ?

xaizek commented 6 years ago

For headers, see #550. It also requires additional plugins.

oronge commented 6 years ago

Learn it, Thank you