Open man chapter 3
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I'm using Vim to develop C on Linux.
When I press K in order to open man page for the underlying word, I don't have control on which man chapter is opened.
Is there a way to specify that somewhere ?
key-bindings
add a comment |Â
up vote
1
down vote
favorite
I'm using Vim to develop C on Linux.
When I press K in order to open man page for the underlying word, I don't have control on which man chapter is opened.
Is there a way to specify that somewhere ?
key-bindings
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm using Vim to develop C on Linux.
When I press K in order to open man page for the underlying word, I don't have control on which man chapter is opened.
Is there a way to specify that somewhere ?
key-bindings
I'm using Vim to develop C on Linux.
When I press K in order to open man page for the underlying word, I don't have control on which man chapter is opened.
Is there a way to specify that somewhere ?
key-bindings
key-bindings
asked 2 hours ago


stdcall
282512
282512
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
Quoting from the documentation
When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
man -s
seems to be the default for the 'keywordprg'
setting, so simplying using a count before typing K seems to do the trick.
(Tested successfully with 2K and 3K and the cursor being on open
).
2
Damn I was 43 seconds too late! :)
– statox♦
1 hour ago
add a comment |Â
up vote
1
down vote
From :h K
:
*K*
K Run a program to lookup the keyword under the
cursor. [...]
Special cases:
- When 'keywordprg' is equal to "man" or starts with
":", a [count] before "K" is inserted after
keywordprg and before the keyword. For example,
using "2K" while the cursor is on "mkdir", results
in:
!man 2 mkdir
- When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
So 3K should do the trick
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
Quoting from the documentation
When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
man -s
seems to be the default for the 'keywordprg'
setting, so simplying using a count before typing K seems to do the trick.
(Tested successfully with 2K and 3K and the cursor being on open
).
2
Damn I was 43 seconds too late! :)
– statox♦
1 hour ago
add a comment |Â
up vote
2
down vote
Quoting from the documentation
When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
man -s
seems to be the default for the 'keywordprg'
setting, so simplying using a count before typing K seems to do the trick.
(Tested successfully with 2K and 3K and the cursor being on open
).
2
Damn I was 43 seconds too late! :)
– statox♦
1 hour ago
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Quoting from the documentation
When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
man -s
seems to be the default for the 'keywordprg'
setting, so simplying using a count before typing K seems to do the trick.
(Tested successfully with 2K and 3K and the cursor being on open
).
Quoting from the documentation
When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
man -s
seems to be the default for the 'keywordprg'
setting, so simplying using a count before typing K seems to do the trick.
(Tested successfully with 2K and 3K and the cursor being on open
).
edited 1 hour ago
answered 1 hour ago


Christian Brabandt
14.3k2342
14.3k2342
2
Damn I was 43 seconds too late! :)
– statox♦
1 hour ago
add a comment |Â
2
Damn I was 43 seconds too late! :)
– statox♦
1 hour ago
2
2
Damn I was 43 seconds too late! :)
– statox♦
1 hour ago
Damn I was 43 seconds too late! :)
– statox♦
1 hour ago
add a comment |Â
up vote
1
down vote
From :h K
:
*K*
K Run a program to lookup the keyword under the
cursor. [...]
Special cases:
- When 'keywordprg' is equal to "man" or starts with
":", a [count] before "K" is inserted after
keywordprg and before the keyword. For example,
using "2K" while the cursor is on "mkdir", results
in:
!man 2 mkdir
- When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
So 3K should do the trick
add a comment |Â
up vote
1
down vote
From :h K
:
*K*
K Run a program to lookup the keyword under the
cursor. [...]
Special cases:
- When 'keywordprg' is equal to "man" or starts with
":", a [count] before "K" is inserted after
keywordprg and before the keyword. For example,
using "2K" while the cursor is on "mkdir", results
in:
!man 2 mkdir
- When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
So 3K should do the trick
add a comment |Â
up vote
1
down vote
up vote
1
down vote
From :h K
:
*K*
K Run a program to lookup the keyword under the
cursor. [...]
Special cases:
- When 'keywordprg' is equal to "man" or starts with
":", a [count] before "K" is inserted after
keywordprg and before the keyword. For example,
using "2K" while the cursor is on "mkdir", results
in:
!man 2 mkdir
- When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
So 3K should do the trick
From :h K
:
*K*
K Run a program to lookup the keyword under the
cursor. [...]
Special cases:
- When 'keywordprg' is equal to "man" or starts with
":", a [count] before "K" is inserted after
keywordprg and before the keyword. For example,
using "2K" while the cursor is on "mkdir", results
in:
!man 2 mkdir
- When 'keywordprg' is equal to "man -s", a count
before "K" is inserted after the "-s". If there is
no count, the "-s" is removed.
So 3K should do the trick
answered 1 hour ago


statox♦
24.7k660127
24.7k660127
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fvi.stackexchange.com%2fquestions%2f17641%2fopen-man-chapter-3%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password