[Python-Dev] PEP 7 updated
David Borowitz
borowitz at stanford.edu
Mon May 10 23:34:23 CEST 2010
On Mon, May 10, 2010 at 07:09, Ronald Oussoren <ronaldoussoren at mac.com>wrote:
>
> On 9 May, 2010, at 20:33, Antoine Pitrou wrote:
>
> >
> > Hello,
> >
> > 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.
> Ronald
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/ddborowitz%40gmail.com
>
>
--
It is better to be quotable than to be honest.
-Tom Stoppard
Borowitz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100510/894840d7/attachment-0001.html>
More information about the Python-Dev
mailing list