aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-09-12 16:29:31 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-09-12 16:29:31 +1200
commit3baad1fc30659a2c9dd8ae91c52105de54e1fc36 (patch)
tree95bedb93e323b1f6a9d74f18b83d1aa29a536126 /vim
parentSimplify systemd unit matching pattern (diff)
downloaddotfiles-3baad1fc30659a2c9dd8ae91c52105de54e1fc36.tar.gz
dotfiles-3baad1fc30659a2c9dd8ae91c52105de54e1fc36.zip
Break excludes up for clarity
Diffstat (limited to 'vim')
-rw-r--r--vim/after/plugin/undofileskip.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/vim/after/plugin/undofileskip.vim b/vim/after/plugin/undofileskip.vim
index 07fbbe2c..f062fe2f 100644
--- a/vim/after/plugin/undofileskip.vim
+++ b/vim/after/plugin/undofileskip.vim
@@ -2,13 +2,23 @@
if !exists('g:undofileskip')
finish
endif
+
+" Skip common temporary paths
call extend(g:undofileskip, [
\ '/dev/shm/*',
\ '/usr/tmp/*',
\ '/var/tmp/*',
+ \])
+
+" Skip Git patch edits
+call extend(g:undofileskip, [
\ '*.git/*_EDITMSG',
\ '*.git/ADD_EDIT.patch',
\ '*.git/rebase-merge/git-rebase-todo',
+ \])
+
+" Skip `systemctl --user edit` buffers
+call extend(g:undofileskip, [
\ '*/.config/systemd/user/?*.?*.d/.#override.conf????????????????',
\ '*/.config/systemd/user/.#?*.?*????????????????',
\])