[vim] stripe trailing whitespace on save

This commit is contained in:
Josh Sherman 2017-05-28 11:56:21 -05:00
parent e736ecabf2
commit 66aba12c7b
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

View file

@ -83,6 +83,8 @@ augroup ExtraWhitespace
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
augroup END
autocmd BufWritePre * :%s/\s\+$//e
let g:bufferline_echo = 0
autocmd VimEnter *
\ let &statusline='%{bufferline#refresh_status()}'