From 002eefe31492277095e6fe7b3cff75e5f365b5ea Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 6 Jun 2018 16:51:18 +1200 Subject: Add 'viminfo' feature test --- plugin/redact_pass.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3