Bo Jeanes 2020-10-24 17:49:52 +11:00
parent d968f08ef2
commit dd5ef2098d
1 changed files with 2 additions and 0 deletions

View File

@ -446,6 +446,8 @@ augroup the_rest
autocmd BufRead,BufNewFile gitconfig set ft=gitconfig
" Strip trailing whitespace on save
" TODO: do not do this for all file types. In particular, bypass this for git patchsets (i.e. from `git add -p`) as
" it can fuck with cleanly applying patches
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
augroup end