2014-02-21 46 views

回答

3

我不相信有一个插件,而只需要将以下行添加到您的.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-> <-这样你不必每次使用映射快捷方式时都键入密码。

相关问题