Thursday, February 3, 2011

Re: Manpage inside Vim

On Thursday 03 February 2011 09:57:34 Bee wrote:

> I have add the following function to .profile then from a
> terminal command line it makes a clean text file in terminal
> vim. Maybe parts of it can be incorporated in the command
> from Joan Miquel Torres Rigo.

> vman() { man "$@" | col -bx | iconv -c | vim -c 'set ft=man
> nomod nolist' -; }

that's really cool -- is that a tip? i know i've seen
something like this before but this one works (i put mine in
my ~/.bashrc) and (thanx to my CSASnapshot) has cool syntax
highlighting i'm not used to seeing on man pages

one question: when man has a choice to make as to which group
to show the manpage from you lose the ability to see the
message and make a choice -- apparently man is one of those
utilities that changes behavior when it senses its output is
being sent to a pipe -- anyone have a way around that?

admittedly, most often the one i want to see is the first one,
not the posix one, but sometimes a language specific page is
the one i want to see, like maybe the c++ one for printf

ok never mind -- i just tried

vman 3 printf

and it brought it right up

cool beans Bee, i'll use this -- thanx

sc

--
You received this message from the "vim_use" 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

No comments: