Monday, October 14, 2013

clang_complete plugin configuration

I'm asking this question here because I looked everywhere else and was unable to find the answer.

I have just installed clang_complete plugin, but I have trouble configuring it. I can't understand the tutorials that are online. I'm very, very, very confused about configuration of this plugin. Nothing works for me. After multiple attempts, I'm even confused on where to start.

Say I have a project. Like most projects it is rooted a certain directory, say C:\Users\myuser\Documents\Porjects\MyProject. Where should I start? Below are my settings in .vimrc for this plugin. Any help is really appreciated.

" ------------------------------- clang_complete -----------------------------
" 0 - Select nothing
" 1 - Automatically select the first entry in the popup menu, but do not
" insert it into the code.
" 2 - Automatically select the first entry in the popup menu, and insert it
" into the code.
let g:clang_auto_select = 1
" 0 - do not complete after ->, ., ::
" 1 - automatically complete after ->, ., ::
let g:clang_complete_auto = 1
" 0 - do not open quickfix window on error.
" 1 - open quickfix window on error.
let g:clang_complete_copen = 1
" 0 - do not highlight the warnings and errors
" 1 - highlight the warnings and errors the same way clang does it
let g:clang_hl_errors = 0
" 0 - do not do some snippets magic on code placeholders like function argument,
" template argument, template parameters, etc.
" 1 - do some snippets magic on code placeholders like function argument,
" template argument, template parameters, etc.
let g:clang_snippets = 1
" The snippets engine (clang_complete, ultisnips... see the snippets
" subdirectory).
let g:clang_snippets_engine = "clang_complete"

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: