I already have Vim with the YouCompleteMe plugin (compiled with semantic support for C-family languages), which I use for Python, etc. Now I would like to try it with C (I have never developed from C to, so I have a little fuzzy idea about some details, for example about the necessary flags.)
To use the YCM semantic completion functions with C, I need to provide it with the .ycm_extra_conf.py file; The YCM user manual points to the YCM .ycm_extra_conf.py native symbol as a link ( link ).
Will the following (based on the above .ycm_extra_conf.py ) create a "minimum working setting" for C (which I could then point to g:ycm_global_ycm_extra_conf ):
flags :
flags = [ '-Wall', '-Wextra', '-Werror', '-std=c11', '-x', 'c' ]
and FlagsForFile without the FlagsForFile line final_flags.remove( '-stdlib=libc++' ) .
Otherwise, the sample file will remain as-is-is. I believe the -isystem flags -isystem strictly related by YCM, is this true?
source share