Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using / to search in man
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
MarkWPiper
n00b
n00b


Joined: 02 Jun 2002
Posts: 30

PostPosted: Tue Feb 24, 2004 5:32 am    Post subject: Using / to search in man Reply with quote

It's of course obvious to all the vim users out there, but typing /something while using man will search for something in the page.

And it works for anything else that your pager is used for too.
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Tue Feb 24, 2004 12:17 pm    Post subject: Reply with quote

You can also easily change the program, which will show the man page. If you do i. e.
Code:

export PAGER="`which vim` -"
man somePage

it will show the page in vim ;) You can also put 'cat' in there. Then it will just output the whole man page.
It even works with X programs (I've tried with gvim).
Back to top
View user's profile Send private message
pi314
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2003
Posts: 136
Location: Germany

PostPosted: Tue Feb 24, 2004 12:48 pm    Post subject: Reply with quote

the /something search is also working within mozilla :D

but how can I get to the next matching result?
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Tue Feb 24, 2004 1:00 pm    Post subject: Reply with quote

When using less (which is standard) you can jump to the next match pressing 'n'.
Back to top
View user's profile Send private message
pi314
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2003
Posts: 136
Location: Germany

PostPosted: Wed Feb 25, 2004 12:43 pm    Post subject: Reply with quote

thx xces

... and "strg+g" or "f3" within mozilla
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Wed Feb 25, 2004 3:04 pm    Post subject: Reply with quote

Thankyou very much, this will help a lot when searching through lengthy man pages on the Pentium 1 :-D
Back to top
View user's profile Send private message
Ronald Dehuysser
n00b
n00b


Joined: 18 Nov 2003
Posts: 26

PostPosted: Tue Mar 02, 2004 9:25 pm    Post subject: man Reply with quote

When you type
Code:
man:"topic"

in the location bar of Konqueror you can really search through all your man pages... and of course, this is really nicer to read...


Have fun,
Ronald
Back to top
View user's profile Send private message
TGL
Bodhisattva
Bodhisattva


Joined: 02 Jun 2002
Posts: 1978
Location: Rennes, France

PostPosted: Wed Mar 03, 2004 11:06 am    Post subject: Reply with quote

On this topic, you can also read this thread: https://forums.gentoo.org/viewtopic.php?t=80756
I personnaly use this (in ~/.bashrc):
Code:
#-------- vman,gman: (g)vim as a manpager ---------
# text mode
vman () {
        /usr/bin/man $* -P "col -bp \
                | vim -R --noplugin \
                -c 'set ft=man nomod nolist laststatus=0' \
                -c 'so \$VIMRUNTIME/macros/less.vim' -"
}
# x11 mode
gman () {
( # subshell so that it doesn't report exit
        args="`echo $* | sed 's:\ :\\\ :g'`"
        COLUMNS=78 /usr/bin/man $* -P "col -b \
                | gvim -f -R --noplugin \
                --cmd 'set guioptions-=m guioptions-=T guioptions-=t' \
                -c 'set ft=man nomod nolist laststatus=0 columns=80 titlestring=man\ $args' \
                -c 'so \$VIMRUNTIME/macros/less.vim' - " &> /dev/null &
)
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum