diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-03 23:59:14 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-03 23:59:14 +1200 |
commit | 891eeb9ac4756dbbb80038343d44845ca4f6e9b8 (patch) | |
tree | dc226db479b243720143eaeee6c2b56bafbaf9c0 /vim | |
parent | Merge branch 'hotfix/v8.28.1' (diff) | |
download | dotfiles-891eeb9ac4756dbbb80038343d44845ca4f6e9b8.tar.gz dotfiles-891eeb9ac4756dbbb80038343d44845ca4f6e9b8.zip |
Use global variable not autoload for undoskip.vim
Just to be consistent with my other plugins.
Diffstat (limited to 'vim')
-rw-r--r-- | vim/plugin/undoskip.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/plugin/undoskip.vim b/vim/plugin/undoskip.vim index 2f541ebf..ffbabf86 100644 --- a/vim/plugin/undoskip.vim +++ b/vim/plugin/undoskip.vim @@ -10,7 +10,7 @@ endif let loaded_undoskip = 1 " Set the paths to test; can be changed by the user -let undoskip#patterns = ['^/dev/shm/.', '^/tmp/.', '^/var/tmp/.'] +let g:undoskip_patterns = ['^/dev/shm/.', '^/tmp/.', '^/var/tmp/.'] " Internal function returns a local value for 'undofile' function s:CheckUndoSkip() abort @@ -23,7 +23,7 @@ function s:CheckUndoSkip() abort " Get the path from the buffer name; if that path matches any of the " patterns, don't save undo data let path = bufname('%') - for pattern in g:undoskip#patterns + for pattern in g:undoskip_patterns if path =~# pattern return 0 endif |