[vim]Correct help function on empty files

This commit is contained in:
Mathieu Maret 2015-05-29 15:12:09 +02:00
parent e632ab9896
commit fcab463370

2
.vimrc
View File

@ -311,7 +311,7 @@ imap <S-F1> <Esc><S-F1>
" 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("<cword>"), 1)
else
execute "Man " . expand("<cword>")