2017-10-13 21:04 GMT+09:00 LCD 47 <[email protected]>:

> On 13 October 2017, Kazunobu Kuriyama <[email protected]> wrote:
> > HI,
> >
> > To get your patch to work for macOS, I needed to add some tweaks to that.
> > Please find the attached patch and consider merging it into yours.   Of
> > course, it's fine to me that you reject or modify it freely; I leave that
> > to you.
> >
> > More precisely, contrary to the description it claims (:h manpager), I
> > haven't been able to get manpager.vim to work for macOS since it was
> > introduced.  As Bram asked for confirmation if your patch worked for
> other
> > platforms, I looked into the issue and found a way to have it work
> properly
> > for the OS.
> >
> > Hopefully, with your patch, the issue is all fixed for the BSD clan.
>
>     Sorry, my patch only fixes how manpager.vim works on systems that
> set $MAN_PN, i.e. _some_ Linuxes.
>

Did you mean you didn't want to go further beyond those Linuxes?   Oh
my...I thought Bram's word "various systems" meant systems other than
Linux.  OK, if you don't like my patch, it's also fine to me that I send it
here again separately, though I'm still wondering if we should go
separately.


>     On OpenBSD I'm using this script instead of the MANPAGER thing:
>
>         #! /bin/sh
>
>         PATH=/usr/local/bin:/bin:/usr/bin
>
>         if [ x"$real_man" = x ]; then
>         export real_man=$(PATH=/bin:/usr/bin which man)
>
>         fmt=$("$real_man" -w "$@" | head -1)
>         fmt=${fmt##*/}
>         fmt=${fmt%.Z}
>         fmt=${fmt%.gz}
>         export MAN_PN="${fmt%.*}(${fmt##*.})"
>         export MANPAGER='vim -M +MANPAGER'
>         fi
>         exec "$real_man" "$@"
>
>     I named this "man" and put it in ~/bin (i.e. a directory in $PATH
> that comes before /usr/bin where the real "man" lives).  Maybe this can
> also work for you on Mac.
>

Thanks, but now I know how to have MANPAGER work for Mac natively :)


>
> > Please note that the patch was made against the the version prior to the
> > above, since I found it didn't work with \(bu (^H appears next to it).
>
>     I'm afraid I can't parse what you're saying here.  Does something
> like ":Man ls" work for you (without MANPAGER and without my patch)?
>

":Man ls" has been working for me without MANPAGER and without you patch.

What I meant was: With your patch just prior to Bram's reply, I didn't see
any flaw with it (if my patch is used with it); but with the one you sent
after his reply, I saw some unnecessary artifacts on man pages even if my
patch is used with it; in particular, I got "+^H" to the left of each
bullet sign, \(bu (See groff(7)).  Does this make sense?


>     /lcd
>

Kazunobu

>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui