When searching string with notepad++, new window opens and shows find results. I want to use this feature in vim. After googling I found out some suggestions:
I suggest lvimgrep (so you can use quickfix for :make)
:nnoremap :lvimgrep /\M\<\m\>/ **/*.[ch]pp **/Makefile | lopen
Also, if you just wanted to find in the current file:
:g//
will invoke 'print' (default command) on each matching line.
:v// " non-matching lines
:g//-1 " lines preceding the matching line
:g//-1,+1 " lines around the matching line
etc.
:global is far more useful:
:g/foo/ join " join all lines containing foo
etc.