about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--vimrc.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vimrc.vim b/vimrc.vim
index 93a63f57..f76396da 100644
--- a/vimrc.vim
+++ b/vimrc.vim
@@ -78,6 +78,6 @@ endfunction
 function! GrepSubX(regex)
   " https://github.com/mtth/scratch.vim
   Scratch!
-  silent exec "r !grep -h ".shellescape(a:regex)." *.subx */*.subx"
+  silent exec "r !grep -h '".a:regex."' *.subx */*.subx"
 endfunction
-command! -nargs=1 G call GrepSubX(<args>)
+command! -nargs=1 G call GrepSubX(<q-args>)