在vim里面查看man页面

 K(在Vim中使用man)
K
                       Run a program to lookup the keyword under the
                        cursor.  The name of the program is given with the
                        'keywordprg' (kp) option (default is "man").  The
                        keyword is formed of letters, numbers and the
                        characters in 'iskeyword'.  The keyword under or
                        right of the cursor is used.  The same can be done
                        with the command >
                                :!{program} {keyword}
<                       There is an example of a program to use in the tools
                        directory of Vim.  It is called 'ref' and does a
                        simple spelling check.
                        Special cases:
                        - If 'keywordprg' is empty, the ":help" command is
                          used.  It's a good idea to include more characters
                          in 'iskeyword' then, to be able to find more help.
                        - When 'keywordprg' is equal to "man", a count before
                          "K" is inserted after the "man" command 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.
                        {not in Vi}

                                                        *v_K*
{Visual}K               Like "K", but use the visually highlighted text for
                        the keyword.  Only works when the highlighted text is
                        not more than one line.  {not in Vi}

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值