A plugin that makes it easier to use Vim is $MANPAGER
.
It:
man
, and marks the removals is with 0x01
and 0x02
characters.iskeyword
so that *
-searching for highlighted terms only match highlighted commands.syntax/man.vim
(options, environment variables, man-highlighted
manpages, section headings, etc.).K
and After installing it, set MANPAGER=vim -
in a suitable place for
environment variables:
~/.pam_environment
:
MANPAGER='vim -'
~/.profile
:
MANPAGER='vim -'
export MANPAGER
(And so on….)
Right now, it doesn't have any configurable settings.
Another possibility for MANPAGER
is:
MANPAGER='env "MAN_PN=$MAN_PN" vim -'
MANWIDTH
If you have set number
or similar settings which might take part of the
display width, you might want to set MANWIDTH
to a value less than
COLUMNS
. I use a wide terminal almost always, so I keep a fixed
MANWIDTH
:
MANWIDTH=80
Because of concealed characters, side-scrolling can be ugly.
Vim has configuration and some syntax highlighting. It adds mappings for
<c-]>
and <c-t>
, approximating tag navigation for manpages. I've left
those alone, for now.