[vim]Correct help function on empty files
This commit is contained in:
parent
e632ab9896
commit
fcab463370
2
.vimrc
2
.vimrc
@ -311,7 +311,7 @@ imap <S-F1> <Esc><S-F1>
|
|||||||
" show contextual help with F1
|
" show contextual help with F1
|
||||||
function Help()
|
function Help()
|
||||||
try
|
try
|
||||||
if b:current_syntax == "python"
|
if exists('b:current_syntax') && b:current_syntax == "python"
|
||||||
:call ShowPyDoc(expand("<cword>"), 1)
|
:call ShowPyDoc(expand("<cword>"), 1)
|
||||||
else
|
else
|
||||||
execute "Man " . expand("<cword>")
|
execute "Man " . expand("<cword>")
|
||||||
|
Loading…
Reference in New Issue
Block a user