CentOS clang complete 的安装与配置

来源:互联网 发布:伴随矩阵怎么求 编辑:程序博客网 时间:2024/06/09 22:16



参考 

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>


0 0
原创粉丝点击