Changes between Version 1 and Version 2 of ChimeraPythonStyle


Ignore:
Timestamp:
Oct 13, 2010, 12:09:38 PM (16 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChimeraPythonStyle

    v1 v2  
    55
    66My style is 4 spaces for each indentation level (no tabs).  My .vimrc contains:
    7 
    8 ### BEGIN .vimrc snippet
     7{{{
    98" global settings
    109set tabstop=4
     
    1312" python settings
    1413autocmd BufRead,BufNewFile *.py set ft=python ai sw=4 ts=4 sta et fo=croql foldmethod=indent
    15 ### END .vimrc snippet
     14}}}
    1615
    1716For emacs, here's a good blog on useful python tools: http://jasonmbaker.com/7-tools-for-working-with-python-in-emacs-and.
    1817
    1918It'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}}}
    2022
    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{{{
    2524### BEGIN PEP8 snippet:
    2625Indentation
     
    5554
    5655### END PEP8 snippet:
     56}}}