GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - riderius/vim-cpplint

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
ftplugin
ftplugin
 
 
README.mdown
README.mdown
 
 

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 quick fix window, which will allow your to quickly jump to the error locations by simply pressing [Enter].

Attention

If Error "FIle xxxx not found. please install it first", please reconfigure g:cpplint_cmd.

Or if you want to use another lint-like program, you also can change g:cpplint_cmd to get it.

let g:cpplint_cmd="[your_path]/cpplint.py"

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 imap <buffer> <F3> :call Cpplint()<CR>

If you want to add any flags for cpplint, change g:cpplint_cmd_options. For example, to add more detailed statistics, use:

let g:cpplint_cmd_options = '"--counting=detailed"'

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

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.