I just found out how to use vimgrep command to search for a particular string in multiple files. I know that the search results are stored in quickfix
I use :cnext to go to the next matching pattern. But this is not a feasible option if there are hundreds of search results.
Can someone please explain how to use quickfix?
The quickfix list is a list of entries containing position, file, and message. It often used for searches like
:vimgrepand:grepas well as finding errors via:make.Here are a few quickfix list commands to get you up and running fast:
:cnextand:cprevto move between your errors/matches.:cfirstand:clastto go to the first and last error/matches respectively.:copento open up the quickfix list in a window (:ccloseto close):cwindowto open quickfix list window only if there are errors:ccto display the current error/match.:cnextand friends. I suggest Tim Pope's unimpaired pluginFor more help see the following: