Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

funorpain/vim-cpplint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

vim-cpplint

vim-cpplint is a Vim plugin that runs the currently open file through cpplint.py, a static syntax and style checker for C++ source code.

Installation

Use vim-pathogen if you're not using it already. Then, simply put the contents of this repository in your ~/.vim/bundle directory.

Usage

  1. Open a C++ file
  2. Press <F7> to run cpplint.py on it

It shows the errors inside a quickfix window, which will allow your to quickly jump to the error locations by simply pressing [Enter].

Customization

If you don't want to use the <F7> key for cpplint-checking, simply remap it to another key. It autodetects whether it has been remapped and won't register the <F7> key if so. For example, to remap it to <F3> instead, use:

autocmd FileType cpp map <buffer> <F3> :call Cpplint()<CR>

Tips

A tip might be to run the cpplint.py check every time you write a C++ file, to enable this, add the following line to your .vimrc file (thanks Godefroid!):

autocmd BufWritePost *.h,*.cpp call Cpplint()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /