A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-May/100031.html below:

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

[Python-Dev] vim (was: PEP 7 updated) [Python-Dev] vim (was: PEP 7 updated)R. David Murray rdmurray at bitdance.com
Mon May 10 20:10:46 CEST 2010
On Mon, 10 May 2010 20:40:00 +0400, Oleg Broytman <phd at phd.pp.ru> 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? 
> 
> BufReadPre /usr/local/src/Python/*/*.c set sts=4 sw=4

Alternatively you could sniff the file for leading tabs and set the
"filetype" or the tab setting based on that.  I think Brett has a vimrc
somewhere that does something like that.

--David
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4