【发布时间】:2017-06-08 19:09:34
【问题描述】:
我已经下载了 vim 插件 cpp_cppcheck,但已将其复制到 ~/.vim/ftplugin/c_cppcheck.vim 以便它也可以处理 C 文件。它似乎运作良好,但我现在想激活选项--enable-all,就像在外壳上的一个罐头一样。在 cppcheck 帮助窗口中显示以下内容:
g:cpp_cppcheck_options The command line options you want to pass to Cppcheck. View your Cppcheck documentation for the possible options. Note that you shouldn't specify a template here! If you do so, Vim won't be able to correctly parse the output of Cppcheck for the quickfix-window. The default value is empty (no options).
但是:c_cppcheck_options 和:cpp_cppcheck_options 没有给我任何东西,当我点击冒号的g 头部时,它似乎不接受它在命令行的底部。如何设置我想要的配置?
【问题讨论】: