about summary refs log tree commit diff stats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/plugin/rf.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/vim/plugin/rf.vim b/contrib/vim/plugin/rf.vim
index 4ea281c..859d81e 100644
--- a/contrib/vim/plugin/rf.vim
+++ b/contrib/vim/plugin/rf.vim
@@ -7,8 +7,9 @@ let g:rf_prefix = ""
 
 set errorformat+=%f
 
-function! g:RFGrepR(args, ft)
-    let results = system('grep -nrI ' . shellescape(a:args) . " $(rf -- " . shellescape(a:ft) . ")")
+function! g:RFGrepR(args)
+    " let results = system('grep -nrI ' . shellescape(a:args) . " $(rf -- " . shellescape(a:ft) . ")")
+    let results = system("rf -s'' | xargs grep -nrI '" . shellescape(a:args) . "'")
     cgete results | copen 9
 endfunction