How to set correct indendation when using formatprg=autopep8?
问题 With the following option set: setlocal formatprg=autopep8\ -aa\ - When I select a single line in Visual Mode and press gq , the autopep8 makes its modification to the line but it also alters the indentation of the line: it defaults to an indent of 4 spaces, no matter the current indentation level of the line(s). I want it to assume that the lines are indented correctly and so to leave them alone. Similarly, if I set the --indent-size 8 switch for autopep8 it will push the lines to an indent