aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/undoskip.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-05 22:16:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-05 22:16:03 +1200
commit3f0b1d25cd5c2f917fa358f0cda00e4c9bc2c40a (patch)
tree4d29456ed01d72929d7a0f06ebac145f6891d976 /vim/autoload/undoskip.vim
parentMove undoskip.vim function into autoload (diff)
downloaddotfiles-3f0b1d25cd5c2f917fa358f0cda00e4c9bc2c40a.tar.gz
dotfiles-3f0b1d25cd5c2f917fa358f0cda00e4c9bc2c40a.zip
Spin undoskip.vim out into its own repository
Diffstat (limited to 'vim/autoload/undoskip.vim')
-rw-r--r--vim/autoload/undoskip.vim20
1 files changed, 0 insertions, 20 deletions
diff --git a/vim/autoload/undoskip.vim b/vim/autoload/undoskip.vim
deleted file mode 100644
index 8813ff13..00000000
--- a/vim/autoload/undoskip.vim
+++ /dev/null
@@ -1,20 +0,0 @@
-" Internal function returns a local value for 'undofile'
-function! undoskip#Check(path) abort
-
- " If this isn't a normal buffer, don't save undo data
- if &buftype !=# ''
- return 0
- endif
-
- " Get the path from the buffer name; if that path matches any of the
- " patterns, don't save undo data
- for glob in g:undoskip
- if a:path =~# glob2regpat(glob)
- return 0
- endif
- endfor
-
- " Otherwise, we'll use whatever the global setting is
- return &g:undofile
-
-endfunction