• Re-indenting Python code in Vim

    From Hen Hanna@21:1/5 to All on Sun Feb 26 11:19:37 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)