Saturday, October 20, 2012

Re: Enforcing coding standards using vim

> Is there a way to enforce certain coding standards for C or C++ code,
> beyond indentation (for which I found google.vim). Stuff like:

If there is a (external) style checker available that fits your needs, you could use it as compiler (or via plugins like syntastic or checksyntax) to identify lines that don't meet your requirements.

Alternatively, you could define a after/syntax/c/style.vim file and define syntax groups that match & highlight frequent mistakes. But I don't think that's a good idea in your case though.

Regards

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: