thinca / vim-ref

Integrated reference viewer.
204 stars 39 forks source link

Add g:ref_man_manpath option for man #54

Closed lcd047 closed 9 years ago

lcd047 commented 9 years ago

Not all systems have an executable named manpath. As a result, caching of man directories doesn't work on those systems.

The patch below adds a new option g:ref_man_manpath for the man source. If this option is unset, the environment variable MANPATH is used. If the environment variable MANPATH is also unset, manpath is run, and the result is used as a list of directories to search for man pages.

thinca commented 9 years ago

Thanks!