Re-indenting Python code in Vim

Hen Hanna henhanna at gmail.com
Sun Feb 26 14:19:37 EST 2023


Re-indenting Lisp code is          =%
and it works  really well !

                                  (define (foo x)
                                         (dotimes (i 100)
                        (bar bar x)))



----------- it doesn't work as well for Python code.
(doing         5==            at the 1st line Re-indents only 3 lines)


               for c in string.ascii_lowercase:
  for   x    in   Dict[tuple(sorted(cw))] :
        print(cw, x , end=' ')
        print('other stuff',   x , end=' ')
        PRSW=True


More information about the Python-list mailing list