Ian Bicking: the old part of his blog

Other editors comment 000

I could be wrong, but I believe the only other editor to come close to Emac's python mode indenting is Vim. Here's what vim looks like for your sample without any fixups:

def munge(x, y, z,
        kwarg=None):
    return {
'x': x,
'y': y,
'rest': (z, keyarg),
}

and with fixups along the way (commented)

def munge(x, y, z,
          kwarg=None):      #space kwarg over 2
    return {
        'x': x,
        'y': y,
        'rest': (z, kwarg),
        }                   # left 2, tab 1

I suspect this could be fixed, but its low on my priority list. Favorite vim feature: tags support - between this and other doc / code lookup features I spend a lot less time clicking about other modules and packages, particularly those I rarely use.

Have used jedit extensively; eric3 as well - found the ubiquity of vim and the extensibility of gvim just too hard to live without. That said, I'm sure a blew a month getting vim configured how I like it and getting used to a modal editor. If its not a long term commitment its not worth going down the vim road I fear.

Comment on Re: Other editors comment 000
by Mike Watkins

Comments:

I'm not sure what python.vim indent plugin you're using, but the updated one from vim.org should produce the following:

def munge(x, y, z,
          kwarg=None):
    return {
        'x':x,
        'y':y,
        'rest': (z, keyarg),
    }

and drops the cursor to the 1st column after the last }. This almost exactly the same as Emacs.

# Keir Mierle