Zvi Har'El wrote:

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?

Have you tried manpageview.vim?

Manpageview is available at:

 * from vim.sf.net:
     http://vim.sourceforge.net/scripts/script.php?script_id=489

 * latest version from my website:
     http://mysite.verizon.net/astronaut/vim/index.html#MANPAGEVIEW

You'll need the new vimball plugin to extract it, too. You can get vimball from either

 * http://vim.sourceforge.net/scripts/script.php?script_id=1502
 * http://mysite.verizon.net/astronaut/vim/index.html#VimBall

Regards,
Chip Campbell

Reply via email to