【问题标题】:Where can I find the RecurGrep command in vim? [closed]我在哪里可以找到 vim 中的 RecurGrep 命令? [关闭]
【发布时间】:2014-02-21 12:31:12
【问题描述】:

是否有Bundle(用于gmarik/Vundle.vim)或我可以找到并安装RecurGrep 的其他地方(网站、软件包、repo)?

【问题讨论】:

    标签: vim vim-plugin vundle


    【解决方案1】:

    我不相信有插件,相反,您只需将以下行添加到您的 .vimrc 文件中。对不起,我不确定它最初来自哪里。

    " simple recursive grep
    command! -nargs=1 RecurGrep lvimgrep /<args>/gj ./**/*.* | lopen | set nowrap
    command! -nargs=1 RecurGrepFast silent exec 'lgrep! <q-args> ./**/*.*' | lopen
    nmap ,R :RecurGrep 
    nmap ,r :RecurGrepFast 
    nmap ,wR :RecurGrep <cword><CR>
    

    :RecurGrep 之后有一个空格::RecurGrep-&gt; &lt;-,这样您就不必每次使用映射的快捷方式时都输入它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-13
      • 1970-01-01
      • 2012-06-19
      • 1970-01-01
      相关资源
      最近更新 更多