doc: man.vim #10817

ref #10808
This commit is contained in:
Doron Behar
2019-08-28 02:38:58 +03:00
committed by Justin M. Keyes
parent 09cbd6769b
commit 3c9c64d9dd

View File

@@ -515,9 +515,6 @@ MAN *ft-man-plugin* *:Man* *man.vim*
View manpages in Nvim. Supports highlighting, completion, locales, and View manpages in Nvim. Supports highlighting, completion, locales, and
navigation. Also see |find-manpage|. navigation. Also see |find-manpage|.
To use Nvim as a manpager: >
export MANPAGER='nvim +Man!'
man.vim will always attempt to reuse the closest man window (above/left) but man.vim will always attempt to reuse the closest man window (above/left) but
otherwise create a split. otherwise create a split.
@@ -554,6 +551,18 @@ Variables:
:let b:man_default_sections = '3,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. May improve layout.
To use Nvim as a manpager: >
export MANPAGER='nvim +Man!'
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: >
export MANWIDTH=999
So `groff`'s pre-formatting output will be the same as with `:Man` i.e soft-wrapped.
PDF *ft-pdf-plugin* PDF *ft-pdf-plugin*
Two maps, <C-]> and <C-T>, are provided to simulate a tag stack for navigating Two maps, <C-]> and <C-T>, are provided to simulate a tag stack for navigating