Created
April 19, 2021 07:09
-
-
Save smeghead/105fbc5086cfaa4ba7ef87ff62271f7a to your computer and use it in GitHub Desktop.
Vim で ripgrep を使って非同期grep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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