From fcab4633704211f08ae1f6b0b944908f80286a57 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 29 May 2015 15:12:09 +0200 Subject: [PATCH] [vim]Correct help function on empty files --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("")