diff options
author | Anmol Sethi <anmol@aubble.com> | 2016-08-24 11:56:33 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-09-03 12:57:41 -0400 |
commit | f8fc8f51c0db0137a696f65a8ba75c89c1012119 (patch) | |
tree | e5591214a8a28b5cd6dce41865e295260d2df734 /runtime/doc | |
parent | 94dfb6cea24180592af5c495dd9e8abf61d5735f (diff) | |
download | rneovim-f8fc8f51c0db0137a696f65a8ba75c89c1012119.tar.gz rneovim-f8fc8f51c0db0137a696f65a8ba75c89c1012119.tar.bz2 rneovim-f8fc8f51c0db0137a696f65a8ba75c89c1012119.zip |
man.vim #5249
- fix synopsis highlighting in other locales. Cannot always rely on the first
line for the section in some locales; instead, use the file path and
explicitly set b:man_sect to the actual section.
- eliminate separate s:man_args function
- simplify logic: do not reuse buffer content
- introduce b:man_default_sects Fixes #5233
- introduce <Plug>(man_vsplit), <Plug>(man_tab)
- simplify regexps
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/filetype.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt index bbe2bbe50f..21092b7081 100644 --- a/runtime/doc/filetype.txt +++ b/runtime/doc/filetype.txt @@ -534,8 +534,11 @@ Man {path} Open the manpage specified by path. Prepend "./" if :vertical Man printf Global Mappings: -<Plug>(Man) Jump to the manpage for the <cWORD> under the - cursor. Takes a count for the section. +<Plug>(man) Jump to the manpage for the <cWORD> (man buffers) + or <cword> (non-man buffers) under the cursor. + Takes a count for the section. +<Plug>(man_vsplit) Same as <Plug>(man) but open in a vertical split. +<Plug>(man_tab) Same as <Plug>(man) but open in a new tab. Local mappings: K or CTRL-] Jump to the manpage for the <cWORD> under the @@ -547,6 +550,9 @@ q :quit if invoked as $MANPAGER, otherwise :close. Variables: *g:no_man_maps* Do not create mappings in manpage buffers. *g:ft_man_folding_enable* Fold manpages with foldmethod=indent foldnestmax=1. +*b:man_default_sects* Comma-separated, ordered list of preferred sections. + For example in C one usually wants section 3 or 2: > + :let b:man_default_sections = '3,2' PDF *ft-pdf-plugin* |