aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/man.vim
diff options
context:
space:
mode:
authorTommy Allen <tommy@esdf.io>2016-08-05 00:47:28 -0400
committerJustin M. Keyes <justinkz@gmail.com>2017-05-01 17:45:54 +0200
commitbc4a2e1576c66ae5eea5463990d73528b3fc75bf (patch)
treeff65aeb198d9b7f60a6d900a843078d71a5e52d0 /runtime/syntax/man.vim
parentcd190db8b3f1376a35a3cdce00e277018f809862 (diff)
downloadrneovim-bc4a2e1576c66ae5eea5463990d73528b3fc75bf.tar.gz
rneovim-bc4a2e1576c66ae5eea5463990d73528b3fc75bf.tar.bz2
rneovim-bc4a2e1576c66ae5eea5463990d73528b3fc75bf.zip
help, man.vim: "outline" (TOC) feature #5169
Diffstat (limited to 'runtime/syntax/man.vim')
-rw-r--r--runtime/syntax/man.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/syntax/man.vim b/runtime/syntax/man.vim
index 819b2adc31..0975b160ae 100644
--- a/runtime/syntax/man.vim
+++ b/runtime/syntax/man.vim
@@ -18,6 +18,11 @@ highlight default link manOptionDesc Constant
highlight default link manReference PreProc
highlight default link manSubHeading Function
+if &filetype != 'man'
+ " May have been included by some other filetype.
+ finish
+endif
+
if !exists('b:man_sect')
call man#init_pager()
endif