I am trying to use clang_complete
for vim
on Arch Linux. I built vim
and vimball
plugin from source. I see +python/dyn
and +python3/dyn
in vim --version
output. I use the following .vimrc
file :
syntax on
filetype plugin on
let g:clang_complete_copen=1
let g:clang_complete_auto=0
let g:clang_user_options='|| exit 0'
let g:clang_use_library=1
let g:clang_library_path='/usr/lib/libclang.so'
In :scriptnames
, I see ~/.vimrc/plugin/clang_complete.vim
is loaded.
Overall, it does not work! If I open a C++
file then vim
shows incorrect UI behaviour without reporting any error. e.g. cursor is invisible, typing words takes place in wrong positions, no syntax highlight, ... . The cursor remains invisible even after quit.
I think clang
library can be loaded since any change in the path makes an error.
Is there any mistake in the above settings?