HiPhish / info.vim

Browse info files from Vim (mirror)
https://gitlab.com/HiPhish/info.vim
MIT License
40 stars 6 forks source link

Respect extra parameters for man fallback #8

Open xeruf opened 2 years ago

xeruf commented 2 years ago

For example, :Info git init falls back to the default git page, while :Man git init shows the right page.

HiPhish commented 2 years ago

I don't think :Man is supposed to work like that. For me :Man git init open the page runit-init(8); it probably runs man init, which happens to open git-init(1) on your system.

xeruf commented 2 years ago

I think :Man forwards all params to the man command as it should, while :Info seems to only forward the first parameter. man init shows the systemd init page for me, while man git init shows the git-init(1) page. It has always worked that way in my experience.

xeruf commented 2 years ago

However, when I run something like man nonsense init, it shows the result for init, so your result is also expected.