Ⅰ. 插件描述
Run Cppcheck on the current window.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/cpp-cppcheck-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/cpp-cppcheck-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/cpp-cppcheck-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/cpp_cppcheck.vim
Ⅳ. 文档说明
This plugin will let you run Cppcheck on the C++ code in the current window. Errors from Cppcheck are presented in the quickfix window so you can edit - check - edit. Just use the command :Cppcheck. After installing the plugin, use :help cpp_cppcheck in Vim for details, including how to set command line options for Cppcheck.
If you encounter any problems, or have feature requests, please create an issue at https://github.com/brobeson/Tools/
I've tested this with Vim 7.4 on Linux (Kubuntu 15.04). Other platforms and versions of Vim should work, but I can't be sure.