diff --git a/.vimrc b/.vimrc index 7f8fa33..15e0025 100644 --- a/.vimrc +++ b/.vimrc @@ -311,7 +311,7 @@ imap " show contextual help with F1 function Help() try - if b:current_syntax == "python" + if exists('b:current_syntax') && b:current_syntax == "python" :call ShowPyDoc(expand(""), 1) else execute "Man " . expand("")