I\'m using vimgrep with cw to open the search results in the quickfix buffer. Every time I select a line in the quickFix list the curs
vimgrep
cw
quickfix
You can use :cnext and :cprevious combined with a p (focus on previous window).
:cnext
:cprevious
p
To bind them to e.g. cn and cp, you could do:
cn
cp
nnoremap cn :cnextp nnoremap cp :cpreviousp