Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbb5f676

Browse files
author
Bruno Sutic
committed
Merge pull request#18 from alx741/master
Add `Use from shell` section and script in README
2 parents02a9fcd +eae868b commitbb5f676

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

‎README.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,27 @@ View man pages in vim. Grep for the man pages.
3333
works nicely with C header files often found in section 2 and 3 man pages i.e.
3434
`<sys/socket.h>`)
3535

36+
#####Using from the shell
37+
38+
You can use vim-man from the shell (instead of standard`man` program) using
39+
the following script:
40+
41+
#! /bin/sh
42+
vim -c "Man $1 $2" -c 'silent only'
43+
44+
Save it in`/usr/bin/` as a file named`viman`, give it execution
45+
permission with:
46+
47+
$ chmod +x /usr/bin/viman
48+
49+
Then from your shell you can read a DOC with:
50+
51+
$ viman doc
52+
53+
Or you can use the alias`alias man=viman` so you can do (as usual):
54+
55+
$ man doc
56+
3657
#####Searching/grepping man pages
3758

3859
Also see[About Mangrep](#about-mangrep)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp