[Tutor] Thanks
Andrei Kulakov
ak@silmarill.org
Wed, 07 Nov 2001 21:33:37 -0500
On Thu, Nov 08, 2001 at 10:23:04AM +0800, Edy Lie wrote:
> Hellow
>
> Thanks for the helps! I was wondering anyone use vi or vim to code in
> python. It would cool if
> there is a .vimrc which could do automatic indentation.
>
> Regards,
> Edy Lie
I use these settings:
autocmd BufNewFile,BufRead *.py set tabstop=4 textwidth=79 expandtab
autoindent smartindent softtabstop=4
cinw=try,if,def,except,for,while,else,elif,class,finally
(all on one line)
The only problem is that it idents after one-line definitions, like this:
if something: do_something()
<autoindent>
but that doesn't happen too often.
>
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org