jremmen / vim-ripgrep

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

open different file in same tab page #24

Closed AaronM04 closed 6 years ago

AaronM04 commented 6 years ago

Hi! If I have file A open and I hit enter on a result in the quickfix list that is in file B, it opens up a new tab page with file B. This is undesirable. How do I change that behavior?

Thank you so much for putting this project together :)

AaronM04 commented 6 years ago

The issue is fixed by removing newtab from the switchbuf option:

:set switchbuf-=newtab