RE: Question regarding 'diffput' 'diffget'

2012-10-20 Thread John Beckett
meino.cramer wrote: at my work and at home I often I use vimdiff -- its simply great! If there is a change in one of the files, which is missing in the other file and you want to add the difference to the other file, you can diffput the stuff while the cursor is in the according lines. On

Enforcing coding standards using vim

2012-10-20 Thread Arindam Mukherjee
Hi, Is there a way to enforce certain coding standards for C or C++ code, beyond indentation (for which I found google.vim). Stuff like: 1. Always put a single space after an if, while, for, etc and the following left-parenthesis. 2. Always put spaces around operators. There could be more. I

Re: Enforcing coding standards using vim

2012-10-20 Thread lith
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