aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-09-12 15:47:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-09-12 15:47:00 +1200
commit405870355238b6d0abdf0635cad9795f4c1ca44e (patch)
tree77b8b838167c14646eae759f63694c0ddf9ac23f
parentAdd "I have attached" to match Mutt drop attach (diff)
downloaddotfiles-405870355238b6d0abdf0635cad9795f4c1ca44e.tar.gz
dotfiles-405870355238b6d0abdf0635cad9795f4c1ca44e.zip
Add settings for 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',
+ \])