diff options
Diffstat (limited to 'plugin/redact_pass.vim')
-rw-r--r-- | plugin/redact_pass.vim | 4 |
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 |