aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
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/.#?*.?*????????????????',
\])