aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-06 16:51:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-06 16:51:18 +1200
commit002eefe31492277095e6fe7b3cff75e5f365b5ea (patch)
tree38f3ff7287f86f5912a8a48ed81ca04c878eeaca
parentInitial commit (diff)
downloadvim-redact-pass-002eefe31492277095e6fe7b3cff75e5f365b5ea.tar.gz
vim-redact-pass-002eefe31492277095e6fe7b3cff75e5f365b5ea.zip
Add 'viminfo' feature test
-rw-r--r--plugin/redact_pass.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/redact_pass.vim b/plugin/redact_pass.vim
index aeb71ae..9dc990c 100644
--- a/plugin/redact_pass.vim
+++ b/plugin/redact_pass.vim
@@ -34,7 +34,9 @@ function! s:RedactPass()
" Unset options
setlocal nobackup
setlocal noswapfile
- setlocal viminfo=
+ if has('viminfo')
+ setlocal viminfo=
+ endif
if has('persistent_undo')
setlocal noundofile
endif