To search for instructions in .subx files, just run `:G 8b.*copy` inside
Vim without any quotes.
This commit is contained in:
Kartik Agaram 2018-10-07 23:19:27 -07:00
parent 857ba19206
commit 399f5c1372
1 changed files with 2 additions and 2 deletions

View File

@ -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>)