From dd5ef2098d1fa158bbe7afa304a896dcc4ad7df0 Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Sat, 24 Oct 2020 17:49:52 +1100 Subject: [PATCH] Add TODO --- editors/vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editors/vim/vimrc b/editors/vim/vimrc index 5df6bda..a2c46cd 100644 --- a/editors/vim/vimrc +++ b/editors/vim/vimrc @@ -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 StripTrailingWhitespaces() augroup end