commit 563bfe9ccd0694e3c6c83bfd331245fb67c08b7a
parent 5c04812f547fdf422326c3a6fd98469466e1dff5
Author: Daniel Moch <daniel@danielmoch.com>
Date: Tue, 26 Dec 2017 06:48:37 -0500
Vim: Avoid undo files for Git commits and /tmp/*
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/.vim/after/syntax/gitcommit.vim b/.vim/after/syntax/gitcommit.vim
@@ -0,0 +1 @@
+set noundofile
diff --git a/.vim/vimrc b/.vim/vimrc
@@ -282,6 +282,7 @@ augroup myvimrc
autocmd GuiEnter * set fullscreen
endif
autocmd ColorScheme * call MyItalicize()
+ autocmd BufWritePre /tmp/* setlocal noundofile
augroup END
" }}}