hello,

coming from linux, i'm used to read manpages
in a vi buffer so i can do much more than
reading the content. i basically use

    :r !man ls
    or
    !!sh (when the line content is "man ls")

under openbsd, it seems man doesn't if stdout
is a tty. i digged the man manual a little bit
without finding a solution so i worked the
things around:

    :r !man ls|fmt

now i would like a poor version of keyword
feature in openbsd vi. the linux version

    map K yw:E /tmp/vi.keyword.$$p!!xargs man

becomes

    map K yw:E /tmp/vi.keyword.$$p!!xargs -IX sh -c 'man X|fmt'

which doesn't work as | separates 2 vi commands.

i really would like to know one or the two of these:

* is there a way to ask man to deliver pure (non-formatted) text ?
* is there a way to introduce a | in vi macros?

regards
marc

Reply via email to