Are you sure that's the cause? I tried it again waiting several minutes after hitting <Tab> and again after hitting <Esc>. Is the CursorMoved something that has to happen after I hit <Shift-O> but before vim adds the blank line?
Just to clarify, my exact steps to reproduce are to run "gvim foo.py" and then type:
aclass<Tab><Esc><Shift-O>
And what I see after that is:
class MyClass(object) """Docstring for MyClass """
def __init__(self): """ """ """ .__init__(self)
"""@todo: to be defined """
It may be something that only affects certain versions of vim or what-have-you. But then, I reproduced it on both Ubuntu 12.04 and 12.10.
Are you sure that's the cause? I tried it again waiting several minutes after hitting <Tab> and again after hitting <Esc>. Is the CursorMoved something that has to happen after I hit <Shift-O> but before vim adds the blank line?
Just to clarify, my exact steps to reproduce are to run "gvim foo.py" and then type: Tab><Esc> <Shift- O>
"""Docstring for MyClass """
aclass<
And what I see after that is:
class MyClass(object)
def __init__(self): """ """ """
._ _init__ (self)
It may be something that only affects certain versions of vim or what-have-you. But then, I reproduced it on both Ubuntu 12.04 and 12.10.