diff --git a/plugin/sensible.vim b/plugin/sensible.vim index d4ba37d..85d581b 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -21,9 +21,13 @@ endif " overriding options in the user's vimrc, but still override options in the " system vimrc. function! s:MaySet(option) abort - redir => out - silent verbose execute 'setglobal' a:option . '?' - redir END + if exists('*execute') + let out = execute('verbose setglobal ' . a:option . '?') + else + redir => out + silent verbose execute 'setglobal' a:option . '?' + redir END + endif return out !~# ' \~[\/]' endfunction