Skip to content

Instantly share code, notes, and snippets.

@smeghead
Created April 19, 2021 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smeghead/105fbc5086cfaa4ba7ef87ff62271f7a to your computer and use it in GitHub Desktop.
Save smeghead/105fbc5086cfaa4ba7ef87ff62271f7a to your computer and use it in GitHub Desktop.
Vim で ripgrep を使って非同期grep
command! -nargs=* Grep call Grep(<f-args>)
function! Grep(...)
let command = ["AsyncRun!", "rg", "--vimgrep", "--no-heading"]
call extend(command, a:000)
execute join(command)
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment