Skip to content

Commit

Permalink
allow clang completion for c++11 it's 2013!!
Browse files Browse the repository at this point in the history
  • Loading branch information
locojay committed Jan 11, 2013
1 parent 3d3f1c9 commit e7624f1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions vimrc
Expand Up @@ -403,6 +403,11 @@ if has("autocmd")
"Scons
autocmd BufNewFile,BufRead SConstruct set filetype=scons

"C++11
autocmd BufNewFile,BufRead *.cpp set syntax=cpp11
autocmd BufNewFile,BufRead *.hpp set syntax=cpp11




endif
Expand Down Expand Up @@ -548,6 +553,7 @@ if has('python')
autocmd Filetype html :UltiSnipsAddFiletypes html
autocmd Filetype c :UltiSnipsAddFiletypes c
autocmd Filetype cpp :UltiSnipsAddFiletypes cpp

endif

" }}}
Expand Down Expand Up @@ -870,7 +876,22 @@ Bundle 'nono/jquery.vim'
"}}}

"C/C++ ------------------------------------------------------------ {{{

Bundle 'vim-scripts/Cpp11-Syntax-Support'
" let c_no_curly_error=1
Bundle 'Rip-Rip/clang_complete'

autocmd FileType c let g:clang_user_options = "-std=c11 2>/dev/null || exit 0"
autocmd FileType cpp let g:clang_user_options = "-std=c++11 2>/dev/null || exit 0"


let g:clang_use_library=1
" let g:clang_library_path='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib'
let g:clang_library='/usr/lib'
let g:clang_snippets=1
let g:clang_snippets_engine='ultisnips'


Bundle 'osyo-manga/neocomplcache-clang_complete'
Bundle 'vim-scripts/scons.vim'
Bundle 'vim-scripts/a.vim'
Expand Down

0 comments on commit e7624f1

Please sign in to comment.