diff options
author | Tommy Allen <tommy@esdf.io> | 2016-08-05 00:47:28 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-05-01 17:45:54 +0200 |
commit | bc4a2e1576c66ae5eea5463990d73528b3fc75bf (patch) | |
tree | ff65aeb198d9b7f60a6d900a843078d71a5e52d0 /runtime/syntax | |
parent | cd190db8b3f1376a35a3cdce00e277018f809862 (diff) | |
download | rneovim-bc4a2e1576c66ae5eea5463990d73528b3fc75bf.tar.gz rneovim-bc4a2e1576c66ae5eea5463990d73528b3fc75bf.tar.bz2 rneovim-bc4a2e1576c66ae5eea5463990d73528b3fc75bf.zip |
help, man.vim: "outline" (TOC) feature #5169
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/help.vim | 2 | ||||
-rw-r--r-- | runtime/syntax/man.vim | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim index d23aab9f7f..98ab7f4b23 100644 --- a/runtime/syntax/help.vim +++ b/runtime/syntax/help.vim @@ -87,6 +87,8 @@ syn match helpSpecial "CTRL-PageDown" syn match helpSpecial "CTRL-Insert" syn match helpSpecial "CTRL-Del" syn match helpSpecial "CTRL-{char}" +syn match helpSpecial "META-." +syn match helpSpecial "ALT-." " Highlight group items in their own color. syn match helpComment "\t[* ]Comment\t\+[a-z].*" 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 |