I’d like to search some string(regex) in bunch of files in VIM. I’d like to have the output looks like the ‘occur’ does in Emacs. i.e. a seperated buffer open, list the lines which match the search, and will open the file if move the cursor to the line and push Return.
Share
I usually use
:grep pattern *.extbut there are different ways. Fully explained http://vim.wikia.com/wiki/Find_in_files_within_Vim