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.vim21
1 files changed, 2 insertions, 19 deletions
diff --git a/vim/after/plugin/undofileskip.vim b/vim/after/plugin/undofileskip.vim
index f062fe2f..e7116940 100644
--- a/vim/after/plugin/undofileskip.vim
+++ b/vim/after/plugin/undofileskip.vim
@@ -3,22 +3,5 @@ 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/.#?*.?*????????????????',
- \])
+" Just split and copy 'backupskip'
+let g:undofileskip = option#Split(&backupskip)