2014-02-21 86 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-> <-這樣你不必每次使用映射快捷方式時都鍵入密碼。

相關問題