tweekmonster / wstrip.vim

Strip trailing whitespace only on changed lines
MIT License
16 stars 2 forks source link

`let g:wstrip_auto = 1` should strip before autosave #9

Open dylan-chong opened 2 years ago

dylan-chong commented 2 years ago

i have this in my vimrc

" Autosave
au FocusLost,BufLeave * silent! :wa
" Autosave when doing some actions
set autowrite
set autowriteall

but it seems that wstrip only strips when doing an explicit :w.

i wonder if it's possible at all do strip before any save?