From 3c9c64d9dd486598f36c597da1eaffebb3bf4cef Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Wed, 28 Aug 2019 02:38:58 +0300 Subject: doc: man.vim #10817 ref #10808 --- runtime/doc/filetype.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/filetype.txt b/runtime/doc/filetype.txt index 1f7d09ae32..c579c390c6 100644 --- a/runtime/doc/filetype.txt +++ b/runtime/doc/filetype.txt @@ -515,9 +515,6 @@ MAN *ft-man-plugin* *:Man* *man.vim* View manpages in Nvim. Supports highlighting, completion, locales, and 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 otherwise create a split. @@ -554,6 +551,18 @@ Variables: :let b:man_default_sections = '3,2' *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* Two maps, and , are provided to simulate a tag stack for navigating -- cgit