View previous topic :: View next topic |
Author |
Message |
MarkWPiper n00b

Joined: 02 Jun 2002 Posts: 30
|
Posted: Tue Feb 24, 2004 5:32 am Post subject: Using / to search in man |
|
|
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 |
|
 |
xces Guru


Joined: 11 Oct 2002 Posts: 515
|
Posted: Tue Feb 24, 2004 12:17 pm Post subject: |
|
|
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 |
|
 |
pi314 Tux's lil' helper


Joined: 31 Jul 2003 Posts: 136 Location: Germany
|
Posted: Tue Feb 24, 2004 12:48 pm Post subject: |
|
|
the /something search is also working within mozilla
but how can I get to the next matching result? |
|
Back to top |
|
 |
xces Guru


Joined: 11 Oct 2002 Posts: 515
|
Posted: Tue Feb 24, 2004 1:00 pm Post subject: |
|
|
When using less (which is standard) you can jump to the next match pressing 'n'. |
|
Back to top |
|
 |
pi314 Tux's lil' helper


Joined: 31 Jul 2003 Posts: 136 Location: Germany
|
Posted: Wed Feb 25, 2004 12:43 pm Post subject: |
|
|
thx xces
... and "strg+g" or "f3" within mozilla |
|
Back to top |
|
 |
MighMoS Guru


Joined: 24 Apr 2003 Posts: 416 Location: @ ~
|
Posted: Wed Feb 25, 2004 3:04 pm Post subject: |
|
|
Thankyou very much, this will help a lot when searching through lengthy man pages on the Pentium 1  |
|
Back to top |
|
 |
Ronald Dehuysser n00b

Joined: 18 Nov 2003 Posts: 26
|
Posted: Tue Mar 02, 2004 9:25 pm Post subject: man |
|
|
When you type
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 |
|
 |
TGL Bodhisattva

Joined: 02 Jun 2002 Posts: 1978 Location: Rennes, France
|
Posted: Wed Mar 03, 2004 11:06 am Post subject: |
|
|
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 |
|
 |
|