lambdalisue / vim-manpager

Use Vim as a MANPAGER program
MIT License
62 stars 5 forks source link

Usage as MANPAGER differs from :Man #17

Closed weierophinney closed 3 years ago

weierophinney commented 3 years ago

Environment info:

I've done the following:

$ export MANPAGER="vim -c MANPAGER -"
$ man git

When I do this, the output looks like the following:

vim-manpager-via-man

When in vim already, if I run :Man git, it looks like the following:

vim-manpager-Man-command

Note that the first only does ANSI escape sequences on the title area; everywhere else, everything is emitted as plain text, with no colors or additional formatting (bold, italic, etc.). I do note, however, that all keybindings are present; I can put my cursor over a keyword and use any of the configured keybindings to jump to that manpage. When I do, I observe the same behavior, however, with regards to display.

The second example, using the :Man command, looks exactly how I would expect.

weierophinney commented 3 years ago

Closing; the issue was with an alias I had defined elsewhere in my shell configuration.