Vim script (mapping) to generate python getters and setters

Somethin that I need quite often is to create custom accessors and mutators for class-attributes. For example convert this: class MyClass(object):        def __init__(self):       self.has_changes = False       self.some_attribute = False into this: class MyClass(object):        def __init__(self):       self.__has_changes = False     … Continue reading Vim script (mapping) to generate python getters and setters