jez / vim-superman

Read Unix man pages faster than a speeding bullet!
http://blog.jez.io/2014/12/20/vim-as-a-man-page-viewer/
MIT License
191 stars 20 forks source link

Fix manpage existence check #22

Closed camflint closed 4 years ago

camflint commented 4 years ago

On my machine, the man -d command returns 1 even when a manpage exists, causing vman to always print the 'No manual entry for ' message.

The fix is to use the man -w command instead, which prints the path to the manpage if it exists, and also correctly sets the status code.