aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-11-19 22:50:10 +0100
committerGitHub <noreply@github.com>2016-11-19 22:50:10 +0100
commit42033bc5bd4bd0f06b33391e12672900bc21b993 (patch)
treefd997dd66777e7a5cc3f9c53459d9725fa6c3dd3 /runtime/syntax
parentacbce46782c4e948e7f6a79bbeb58aac62c4c9ab (diff)
parent7a4d069bccd3d19741d50d64052e386ac4e7cfc8 (diff)
downloadrneovim-42033bc5bd4bd0f06b33391e12672900bc21b993.tar.gz
rneovim-42033bc5bd4bd0f06b33391e12672900bc21b993.tar.bz2
rneovim-42033bc5bd4bd0f06b33391e12672900bc21b993.zip
Merge #5630 from nhooyr/man-ftplugin
man.vim: bug fixes
Diffstat (limited to 'runtime/syntax')
-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