On 2006-12-28, Zvi Har'El <[EMAIL PROTECTED]> wrote:
> Dear Vim Gurus,
>
>
> I am using Linux in a UTF-8 locale, and I have a problem with using less
> as a pager for manual pages: I cannot search for options, since they use
> a dash instead of a minus sign, and I don't have an easy way to type the
> hyphen (I have put some xterm definitions for various dashes in
> .Xdefaults, using ctrl-minus, alt-minus, etc, but I always forget which
> is which :'( ). I thought I could use vim's less.sh as a replacement for
> less, but it has a problem with the vt100 escape sequences which are
> used in the man page for emboldening and underlining. Is there a vim
> macro file which can be used instead of less.vim, or in addition to it,
> which can handle escape sequences, and not show the raw data?
One solution would be to use 'col' in a pipeline ahead of less.sh,
e.g.,
man vim | col -b | less.sh
You could incorporate the 'col' filter into your own copy of
less.sh, or put a wrapper around 'man', or possibly define PAGER as
a pipeline, but I'm not sure whether that works.
HTH,
Gary
--
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Wireless Division
| Spokane, Washington, USA