Changes between Version 1 and Version 2 of ChimeraPythonStyle
- Timestamp:
- Oct 13, 2010, 12:09:38 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ChimeraPythonStyle
v1 v2 5 5 6 6 My style is 4 spaces for each indentation level (no tabs). My .vimrc contains: 7 8 ### BEGIN .vimrc snippet 7 {{{ 9 8 " global settings 10 9 set tabstop=4 … … 13 12 " python settings 14 13 autocmd BufRead,BufNewFile *.py set ft=python ai sw=4 ts=4 sta et fo=croql foldmethod=indent 15 ### END .vimrc snippet 14 }}} 16 15 17 16 For emacs, here's a good blog on useful python tools: http://jasonmbaker.com/7-tools-for-working-with-python-in-emacs-and. 18 17 19 18 It's possible to insert a mode line into each file to override user editor settings. The first line of the file might contain something like this (which should work for both emacs and vim): 19 {{{ 20 # -*- coding: ISO-8859-1; mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=ISO-8859-1:ft=python:et:sw=4:ts=4:sts=4 21 }}} 20 22 21 # -*- coding: ISO-8859-1; mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=ISO-8859-1:ft=python:et:sw=4:ts=4:sts=4 22 23 24 23 {{{ 25 24 ### BEGIN PEP8 snippet: 26 25 Indentation … … 55 54 56 55 ### END PEP8 snippet: 56 }}}
![[Chimera Issue Tracking System]](/trac/chimera/chrome/site/chimera_logo.png)