man.vim needs to be tested on sunOS, I have no idea whether it works on there or not.
Also, https://github.com/neovim/neovim/blob/ebb1acb3c083e63667c3606233a496b11d3faa83/runtime/autoload/man.vim#L18-L20 does not need to be in the try block.
I would like to tackle this.
Hi,
not sure if I understand what you're asking, but on OS X, man -l
is illegal:
```mbp:nvim-osx64 marek$ man -l
man: invalid option -- l
man, version 1.6c
usage: man [-adfhktwW] [section] [-M path] [-P pager] [-S list]
[-m system] [-p string] name ...
However, you may wanna be looking for `man -d`:
```man -d nvim
Reading config file /private/etc/man.conf
Looked whether there exists a message catalog man, but there is none
(and for English messages none is needed)
found man directory /usr/share/man
found man directory /usr/local/share/man
found man directory /usr/X11/man
found manpath map /bin --> /usr/share/man
found manpath map /sbin --> /usr/share/man
found manpath map /usr/bin --> /usr/share/man
found manpath map /usr/sbin --> /usr/share/man
found manpath map /usr/local/bin --> /usr/local/share/man
found manpath map /usr/local/sbin --> /usr/local/share/man
found manpath map /usr/X11/bin --> /usr/X11/man
found manpath map /usr/bin/X11 --> /usr/X11/man
found manpath map /usr/bin/mh --> /usr/share/man
# etc. etc
And man -M
adds a man page on path, i.e. man -M share/man/ nvim
is successful, when man nvim
is not. Note that when I wanna combine the two, i.e. man -dM share/man/ nvim
, this does not work for some reason:
not executing command:
(cd '/Users/${profile_name}/Downloads/nvim-osx64/share/man/' && (echo ".ll 11.7i"; echo ".nr LL 11.7i"; /bin/cat '/Users/${profile_name}/Downloads/nvim-osx64/share/man//man1/nvim.1') | /usr/bin/tbl | /usr/bin/groff -Wall -mtty-char -Tascii -mandoc -c | (/usr/bin/less -is || true))
Does that help?
PS: This is Mac OS Sierra - 10.12.6
We just need the :Man
command tested on illumos or solaris or whatever.
We can close this and expect a bug report if anyone finds a problem there.
Most helpful comment
I would like to tackle this.