jremmen / vim-ripgrep

Use RipGrep in Vim and display results in a quickfix list
MIT License
541 stars 99 forks source link

Don't depend on bash extension #40

Open tmandry opened 5 years ago

tmandry commented 5 years ago

&> is a bash extension (also supported by some other shells, but not all). This adds support for other shells including sh and fish.

I wish there were a cleaner way of doing this, but 2>&1 > doesn't have the desired effect of redirecting stderr properly. I don't know of a way to tell vim to do >filename 2>&1 with shellpipe, although shellredir looks promising.