aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-11-24 17:37:47 -0800
committerGitHub <noreply@github.com>2019-11-24 17:37:47 -0800
commit544eeeb0d65cb30cf00196acd99d0bf93e79ae16 (patch)
treeb39dd6cabbbe10ccb49ba843fcb225d0b322ae6e /runtime/doc
parent526798a941b4cf80fd1f128b40e51fb47c77b654 (diff)
parentafaa0626430ba0150729a088234698de85174ce6 (diff)
downloadrneovim-544eeeb0d65cb30cf00196acd99d0bf93e79ae16.tar.gz
rneovim-544eeeb0d65cb30cf00196acd99d0bf93e79ae16.tar.bz2
rneovim-544eeeb0d65cb30cf00196acd99d0bf93e79ae16.zip
Merge #11451 'man.vim: Fixes'
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/filetype.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt
index c579c390c6..c649688d99 100644
--- a/runtime/doc/filetype.txt
+++ b/runtime/doc/filetype.txt
@@ -549,7 +549,9 @@ Variables:
*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'
-*g:man_hardwrap* Hard-wrap to $MANWIDTH. May improve layout.
+*g:man_hardwrap* Hard-wrap to $MANWIDTH or window width if $MANWIDTH is
+ empty. Enabled by default. Set |FALSE| to enable soft
+ wrapping.
To use Nvim as a manpager: >
export MANPAGER='nvim +Man!'
@@ -558,10 +560,13 @@ Note that when running `man` from the shell and with that `MANPAGER` in your
environment, `man` will pre-format the manpage using `groff`. Thus, Neovim
will inevitably display the manual page as it was passed to it from stdin. One
of the caveats of this is that the width will _always_ be hard-wrapped and not
-soft wrapped as with `:Man`. You can set in your environment: >
+soft wrapped as with `g:man_hardwrap=0`. You can set in your environment: >
export MANWIDTH=999
-So `groff`'s pre-formatting output will be the same as with `:Man` i.e soft-wrapped.
+So `groff`'s pre-formatting output will be the same as with `g:man_hardwrap=0` i.e soft-wrapped.
+
+To disable bold highlighting: >
+ :highlight link manBold Normal
PDF *ft-pdf-plugin*