1

The raw form code is as the following:

class A(object):
       def __init__(self):
              self.__private()
              self.public()
       def __private(self):
              print('A.__private()')
       def public(self):
              print 'A.public()'

What is the most quickest way to set into the well formatted form as the following in gvim?

class A(object):
    def __init__(self):
        self.__private()
        self.public()
    def __private(self):
        print('A.__private()')
    def public(self):
        print 'A.public()'
showkey
  • 482
  • 42
  • 140
  • 295
  • 1
    Try this command `gg=G`. For full explanation on what it does, take a look at this [answer](http://stackoverflow.com/a/2355848/1144203). – ivan.sim Aug 23 '14 at 06:23

0 Answers0