man.vim: do not assume ftplugin is sourced before syntax

Fixes #5574
This commit is contained in:
Anmol Sethi
2016-11-19 01:08:23 -05:00
parent cf52b881d9
commit 7a4d069bcc
3 changed files with 30 additions and 24 deletions

View File

@@ -18,6 +18,9 @@ highlight default link manOptionDesc Constant
highlight default link manReference PreProc
highlight default link manSubHeading Function
if !exists('b:man_sect')
call man#init_pager()
endif
if b:man_sect =~# '^[23]'
syntax include @c $VIMRUNTIME/syntax/c.vim
syntax match manCFuncDefinition display '\<\h\w*\>\ze\(\s\|\n\)*(' contained