0

How can I jump to the next search cscope result in vim and open it in the currently active split? If I open :cw, the selected result will always open in the top-right split, which is not what I'm looking for.

stdcerr
  • 13,725
  • 25
  • 71
  • 128

1 Answers1

2

:cwindow will open the quickfix list in a window (quickfix window) if there are results (Similar to :copen). You do not need to use the quickfix window at all in your case. You can simply go to the next quickfix item via :cnext.

For more help see:

:h quickfix
:h :cnext
:h :cw
:h :cprev
:h :cl
:h :cc
Peter Rincker
  • 43,539
  • 9
  • 74
  • 101