On Mon, May 10, 2010 at 07:09, Ronald Oussoren <email@example.com>
On 9 May, 2010, at 20:33, Antoine Pitrou wrote:
> The untabification of C files didn't produce any noticeable problem on
> the buildbots. I've updated PEP 7 with the mention that all C files
> should be 4-space indented, and removed the obsolete wording about
> some files being indented with tabs.
Does anyone know of a way to teach vim that C sources in a python checkout should have 4-space indents without changing the defaults for other C files?
:help autocmd-patterns has this example, which should be easy to adapt:
:autocmd BufRead /vim/src/*.c set cindent
Set the 'cindent' option for C files in the /vim/src directory.
Python-Dev mailing list