aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/man.vim
diff options
context:
space:
mode:
authorAnmol Sethi <anmol@aubble.com>2016-11-19 01:08:23 -0500
committerAnmol Sethi <anmol@aubble.com>2016-11-19 13:41:04 -0500
commit7a4d069bccd3d19741d50d64052e386ac4e7cfc8 (patch)
treefd997dd66777e7a5cc3f9c53459d9725fa6c3dd3 /runtime/syntax/man.vim
parentcf52b881d987a5e5175b0df2304832c58ba065f7 (diff)
downloadrneovim-7a4d069bccd3d19741d50d64052e386ac4e7cfc8.tar.gz
rneovim-7a4d069bccd3d19741d50d64052e386ac4e7cfc8.tar.bz2
rneovim-7a4d069bccd3d19741d50d64052e386ac4e7cfc8.zip
man.vim: do not assume ftplugin is sourced before syntax
Fixes #5574
Diffstat (limited to 'runtime/syntax/man.vim')
-rw-r--r--runtime/syntax/man.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/syntax/man.vim b/runtime/syntax/man.vim
index 4a527dd350..819b2adc31 100644
--- a/runtime/syntax/man.vim
+++ b/runtime/syntax/man.vim
@@ -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