Open man chapter 3

The name of the pictureThe name of the pictureThe name of the pictureClash 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 ?










share|improve this question

























    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 ?










    share|improve this question























      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 ?










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      stdcall

      282512




      282512




















          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).






          share|improve this answer


















          • 2




            Damn I was 43 seconds too late! :)
            – statox♦
            1 hour ago

















          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






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "599"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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






























            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).






            share|improve this answer


















            • 2




              Damn I was 43 seconds too late! :)
              – statox♦
              1 hour ago














            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).






            share|improve this answer


















            • 2




              Damn I was 43 seconds too late! :)
              – statox♦
              1 hour ago












            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).






            share|improve this answer














            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).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            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












            • 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










            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






            share|improve this answer
























              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






              share|improve this answer






















                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






                share|improve this answer












                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







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                statox♦

                24.7k660127




                24.7k660127



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery