Vimjas / vim-python-pep8-indent

A nicer Python indentation style for vim.
Creative Commons Zero v1.0 Universal
786 stars 69 forks source link

Suggestion: delete the space in the end when break a line #96

Closed CareF closed 6 years ago

CareF commented 6 years ago

Thank you a lot for making a very nice plugin, but sorry I don't have the ability to implement it myself. The conditions are:

foo(a, b, c)

and I want to break after b,, I would expect for same result no matter I break the line after , or space.

blueyed commented 6 years ago

Makes sense, but it does not seem the responsibility of an indent plugin to change text by itself. We're only being asked for the indent of line 2 in this case - and should not modify line 1.

I am closing this, and suggest to use something to remove trailing spaces instead and/or just wrap after the ,.. ;)