Re: [Python-Dev] vim (was: PEP 7 updated)

2010-05-10 Thread Brett Cannon
On Mon, May 10, 2010 at 11:10, R. David Murray wrote: > On Mon, 10 May 2010 20:40:00 +0400, Oleg Broytman wrote: > > On Mon, May 10, 2010 at 04:09:06PM +0200, Ronald Oussoren wrote: > > > Does anyone know of a way to teach vim that C sources in a python > checkout should have 4-space indents with

Re: [Python-Dev] vim (was: PEP 7 updated)

2010-05-10 Thread R. David Murray
On Mon, 10 May 2010 20:40:00 +0400, Oleg Broytman wrote: > On Mon, May 10, 2010 at 04:09:06PM +0200, Ronald Oussoren wrote: > > 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? > > Bu

Re: [Python-Dev] vim (was: PEP 7 updated)

2010-05-10 Thread Oleg Broytman
On Mon, May 10, 2010 at 04:09:06PM +0200, Ronald Oussoren wrote: > 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? BufReadPre /usr/local/src/Python/*/*.c set sts=4 sw=4 Oleg. -- Oleg