tell-k / vim-autopep8

autopep8 plugin for Vim
http://www.vim.org/scripts/script.php?script_id=4614
MIT License
277 stars 51 forks source link

Format On Save Quality of Life #47

Closed DanielBarton446 closed 2 years ago

DanielBarton446 commented 2 years ago

I have set the option: let g:autopep8_on_save = 1 However, with vim creating a split for the changes, it is irritating to view a split when there are no changes made. First and foremost I was curious if there was an option to suppress this split being shown in general that I missed. I know for most users this might not be ideal or desirable since you would want to know what changes were made.

If there is no option to suppress the split, I was curious if its possible/feasible to have vim not make a split of there are no reported changes. I think this would be a nice QoL change, but I don't know where to begin so I thought I would post it here.

DanielBarton446 commented 2 years ago

I overlooked the window like 5 times. It's right in the documentation let g:autopep8_disable_show_diff=1

Only after posting do I notice this...