I often use rg -i PATTERN | vim -
to pipe the results to a new vim session.
Is there a way to do this from within a running vim session with an open terminal (opened with :term
) in a none blocking way?
I know :vimgrep
and it's already configured to work with rg.
Is there a way to run multiple rg commands parallel from within?
I'm working on windows 10.
Update: The terminal from which I want to execute the commands is the terminal which is started from within Vim with the :term command.
I was looking for :term rg -i PATTERN
which will run async and not block vim. It's also possible to run several commands in parallel.
And so the terminal is a buffer I can simply yank the results to my working document/buffer.