Vim: reformat a Python file to have 4 space indentations

Reading about Vim: reformat a Python file to have 4 space indentations and came up with this:

:%s/^\s*/&&/g

Leave a Reply