about summary refs log tree commit diff stats
path: root/vimrc.vim
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-07 23:19:27 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-07 23:19:27 -0700
commit399f5c13722c13faec7443432a741767d7acc898 (patch)
treefde8b68a852cc37b513d7737e1d93c57b464a797 /vimrc.vim
parent857ba192061823823b93675ea21739ffa3e09509 (diff)
downloadmu-399f5c13722c13faec7443432a741767d7acc898.tar.gz
4673
To search for instructions in .subx files, just run `:G 8b.*copy` inside
Vim without any quotes.
Diffstat (limited to 'vimrc.vim')
-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>)