简体   繁体   中英

clang_complete vim extension not working with STL

I have installed clang and clang_complete on a Linux system. I added the following lines to my .vimrc :

let g:clang_user_options='|| exit 0'
set completeopt-=preview

Auto-completion works for my own code. However, it doesn't work with STL container. Even when I just type std:: , I see a "user defined completion - pattern not found" at the bottom of the screen. What is the problem?

I use Vim 7.3 and clang_complete 1.8

The workaround is to tell clang_complete to use the clang library (instead of binary) for parsing. This is done by adding the following line to .vimrc :

let g:clang_use_library=1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM