@register(u'self-insert')
def self_insert(event):
 event.current_buffer.insert_text((event.data * event.arg))

@ register ( u'self-insert' ) def self_insert ( event ) : event . current_buffer . insert_text ( ( event . data * event . arg ) )
insert yourself .