参考
http://www.cnblogs.com/egmkang/archive/2011/02/20/clang_complete.html
http://www.cnblogs.com/davytitan/p/3924402.html
~/.vimrc 配置
set completeopt=menu,longest
let g:clang_complete_auto=1 " automatically complete after -> . ::
let g:clang_hl_errors=1 " highlight the warnings and error the same way clang does it
let g:clang_complete_copen=0 " open quickfix window on error
let g:clang_periodic_quickfix=0 " periodically update the quickfix window
let g:clang_snippets=0
let g:clang_close_preview=1
let g:clang_use_library=1
let g:clang_library_path='/home/liang/tools/lib'
let g:clang_user_options='-stdlib=libstdc++ -IIncludePath 2> NUL || exit 0'
let g:clang_auto_select=1
set ts=4
set nowrap
set hlsearch
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set cindent
:map <C-O> <C-]>
:map <C-I> <C-T>