Open ghost opened 7 years ago
I'm not sure I understand the suggestion. Could you expand a bit more on the idea?
If you add this to your .vimrc, you should get the behavior you're looking for:
nnoremap <expr> p (&buftype is# "quickfix" ? "<CR>\|:copen<CR>" : "p")
When in the quick fix window, this will display the selected item and then change focus back to the quick fix window.
Like tagbar plugin that we can press
p
key to jump to definition but keep stay on tagbar window.It'd be great if we can add this feature to vim-ripgrep.