[vim] stripe trailing whitespace on save
This commit is contained in:
parent
e736ecabf2
commit
66aba12c7b
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ augroup ExtraWhitespace
|
||||||
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
|
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
autocmd BufWritePre * :%s/\s\+$//e
|
||||||
|
|
||||||
let g:bufferline_echo = 0
|
let g:bufferline_echo = 0
|
||||||
autocmd VimEnter *
|
autocmd VimEnter *
|
||||||
\ let &statusline='%{bufferline#refresh_status()}'
|
\ let &statusline='%{bufferline#refresh_status()}'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue