Awesome C completion with Vim
" Hide concealed text unless it has a custom replacement character defined | |
set conceallevel=2 | |
" Text can be concealed in visual, insert and normal modes | |
set concealcursor=vin | |
" Don't show preview scratch window, show the menu even if only one | |
" completion, autocomplete the longest in the menu | |
set completeopt=menu,menuone,longest | |
" Limit the number of completions | |
set pumheight=16 | |
" Set SuperTab's default completion mode to something we actually want | |
let g:SuperTabDefaultCompletionType='<c-x><c-u><c-p>' | |
" Open quickfix window on error | |
let g:clang_complete_copen=1 | |
" Highlight errors | |
let g:clang_hl_errors=1 | |
" Enable clang's snippet magic | |
let g:clang_snippets=1 | |
" Conceal the snippet's placeholders | |
let g:clang_conceal_snippets=1 | |
" Complete patterns like loop constructs | |
let g:clang_complete_patterns=1 | |
" Use clang's own snippets engine | |
let g:clang_snippets_engine='clang_complete' | |
" Manually set the clang library---this is in a weird spot on OSX | |
let g:clang_library_path='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment