A plugin that makes it easier to use Vim is
- Removes the backspaces added by
man, and marks the removals is with
- It uses these markers to do syntax highlighting, and adds them to
*-searching for highlighted terms only match highlighted commands.
- Syntax highlighting for a few more types than the default
syntax/man.vim(options, environment variables, man-highlighted manpages, section headings, etc.).
Kand Enter to open referenced manpages.
After installing it, set
MANPAGER=vim - in a suitable place for
MANPAGER='vim -' export MANPAGER
(And so on….)
Right now, it doesn't have any configurable settings.
Another possibility for
MANPAGER='env "MAN_PN=$MAN_PN" vim -'
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
Because of concealed characters, side-scrolling can be ugly.
Vim's default manpage settings
Vim has configuration and some syntax highlighting. It adds mappings for
<c-t>, approximating tag navigation for manpages. I've left
those alone, for now.