Vim Syntastic Cpplint 配置

来源:互联网 发布:java读取配置文件路径 编辑:程序博客网 时间:2024/05/29 16:05

简介

Cpplint 是谷歌为其 C++ style guide 推出的检查工具。Syntastic 插件支持将 cpplint 设置为 cpp 类型文件的 checker。本文介绍其具体设置。

具体设置

  1. 安装 cpplint: pip install cpplint
  2. .vimrc 中设置 exec: let g:syntastic_cpp_cpplint_exec = "cpplint"
  3. .vimrc 中设置 checker: let g:syntastic_cpp_checkers = ['cpplint']
  4. Vim 打开任意 cpp 文件,检查在用哪个checker::SyntasticInfo

了解其他信息::help syntastic-checkers

参考

  1. https://github.com/vim-syntastic/syntastic/issues/1569
  2. http://blog.jpalardy.com/posts/how-to-configure-syntastic/
原创粉丝点击