aboutsummaryrefslogtreecommitdiff
path: root/vim/after/plugin/undofileskip.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/plugin/undofileskip.vim')
-rw-r--r--vim/after/plugin/undofileskip.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/vim/after/plugin/undofileskip.vim b/vim/after/plugin/undofileskip.vim
new file mode 100644
index 00000000..5c21868f
--- /dev/null
+++ b/vim/after/plugin/undofileskip.vim
@@ -0,0 +1,12 @@
+" If undofileskip.vim loaded, add a few applicable paths to its list
+if !exists('g:undofileskip')
+ finish
+endif
+call extend(g:undofileskip, [
+ \ '/dev/shm/*',
+ \ '/usr/tmp/*',
+ \ '/var/tmp/*',
+ \ '*.git/*_EDITMSG',
+ \ '*.git/ADD_EDIT.patch',
+ \ '*.git/rebase-merge/git-rebase-todo',
+ \])