There is a plugin for vim ftplugin/man.vim:
https://github.com/idbrii/vim-man/blob/master/ftplugin/man.vim
” man page filetype plugin file
With it I can view man page directly from vim by pressing “K”.
But scrolling in this internal man page viewer does not work with pgup/pgdn keys. Yes, there are some other variants of scroll, but how to enable pgdn/pgup in this plugin?
Add to vimrc:
pgup-pgdn mapped to changing sections of mans (when man is called with
man -aand there is the same page in different sections). Documentation is at http://www.drchip.org/astronaut/vim/doc/manpageview.txt.html