4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
新闻详情
VIM syntastic 插件头文件包含问题-CSDN论坛
来自 : CSDN技术社区 发布时间:2021-03-25
\"ForcppSyntaxCheck你去下载一个cppSyntaxChek配置如下:针对C++的,和SyntaxCheck混合使用,检测头文件就不会出现了,保存才刷新,开始进入文件会提示错误,没关系,因为没有刷新。
letg:include_path=\":.
\\:/home/howard/qt/qt-embedded-4.8.5/include/QtCore
\\:/home/howard/qt/qt-embedded-4.8.5/include/QtGui
\\:/usr/lib/llvm-3.8/include/llvm
\\:/usr/include/c++/5
\\:/usr/lib/llvm-3.8/lib/clang/3.8.0/include\"
letg:compile_flag=\"-D_LINUX_\"
letg:cpp_compiler=\"/usr/bin/g++\"
letg:enable_warning=1
letg:cpp_compiler=\"LANG=Cg++-Wall\"
letg:longest_text=120
\"Forsyntasticsettings这个是我的syntastic的配置
letg:syntastic_enable_highlighting=1\"错误单词高亮
letg:syntastic_aggregate_errors=1\"第一时间检查发现任何错误
letg:syntastic_enable_signs=1
letg:syntastic_auto_loc_list=1
letg:syntastic_check_on_open=1
letg:syntastic_check_on_wq=0
letg:syntastic_always_populate_loc_list=1
letg:syntastic_stl_format=\"[%E{Err:%fe#%e}%B{,}%W{Warn:%fw#%w}]\"
letg:syntastic_debug_file=\"~/syntastic.log\"
\"let g:syntastic_cpp_check_header = 1
letg:syntastic_cpp_checkers=[\'gcc\']
letg:syntastic_auto_jump=1
letg:syntastic_enable_balloons=1
letg:syntastic_cpp_compiler=\'g++\'
letg:syntastic_cpp_compiler_options=\'-std=c++11-Wall-Wextra\'
letg:syntastic_cpp_check_header=1
letg:syntastic_cpp_auto_refresh_includes=1
letg:syntastic_c_config_file=[\'/home/howard/qt/qt-embedded-4.8.5/include/QtGui\']
letg:syntastic_cpp_include_dirs=[
\\\'/home/howard/qt/qt-embedded-4.8.5/include/QtCore\',
\\\'/home/howard/qt/qt-embedded-4.8.5/include/QtGui\',
\\\'/usr/lib/llvm-3.8/include/llvm\',
\\\'/usr/include/c++/5\',
\\\'/usr/lib/llvm-3.8/lib/clang/3.8.0/include\']
letg:syntastic_ignore_files=[\".*\\.py$\",\".*\\.S$\"]\"让syntastic忽略python文件,和汇编文件
letg:syntastic_html_tidy_ignore_errors=[\"proprietaryattribute\\\"ng-\"]
setstatusline+=%#warningmsg#
setstatusline+=%{SyntasticStatuslineFlag()}
setstatusline+=%*
\"YouCompleteMeoptions这个自动补全的也有语法检测,需要关闭它的,配置如下
letg:ycm_enable_diagnostic_signs=1\"诊断症状使能
letg:ycm_enable_diagnostic_highlighting=0\"诊断语法彩笔做标记
letg:ycm_register_as_syntastic_checker=1\"使用syntastic检测语法
letg:ycm_error_symbol=\'乄\'
letg:ycm_warning_symbol=\'〇\'
\"这样配置就完美了,乄表示错误提示,而且这里配置了syntastic的检测,YCM是对python语法检测,对C++很多bug。

本文链接: http://syntastic.immuno-online.com/view-754046.html

发布于 : 2021-03-25 阅读(0)