Python Indentation Problems
John M. Gabriele
john_sips_teaz at yahooz.com
Wed Mar 1 01:58:01 EST 2006
Renato wrote:
> If you use vi (vim, I hope), then place something like this in your
> .vimrc
>
> set ts=4
> set sw=4
> set expandtab
> set ai
Or, more verbose:
set tabstop=4
set shiftwidth=4
set autoindent
> There are a lot more tricks for python in vim (and plugins, and
> helpers, and so on), but this is the starting point: tabstops of 4
> places, autoconverted in spaces. Also, when shifting text with < or >
> it moves 4 spaces.
>
Also possibly useful:
set shiftround
---John
--
(remove zeez if demunging email address)
More information about the Python-list
mailing list