vim/python indent problem with parenthesis

Simo Salminen simo_salminen at iki.fi
Thu Mar 13 08:00:56 EST 2003


I've played with VIM lately, and stumbled to problems with its
python indenting. I really like the emacs-python mode of indenting
stuff inside parenthesis, like this:

(emacs session)
if (cond and<enter>
    <- cursor moves here
		
now, the same code in VIM:

if (cond and<enter>
<- cursor moves here

Now I have to manually indent, but then there is another problem:

if (cond and
    cond):<enter>
        <- VIM indents two times!


Has anyone else stumbled to these problems, and maybe even have
patched indent/python.vim available (*wishful thinking*) ?

-- 
simo salminen




More information about the Python-list mailing list