How to do incremental search across multiple text files in VIM

gvimvim

Is there a way to have VIM do incremental search on text files?

Vim already does incremental search within the currently open file.

Examples of programs that demonstrate the type of search I'm trying to accomplish are Notational Velocity for MacOS, Resop for windows or SimpleNote for the web.

These apps do an instant or incremental search in the files of a specific directory and make it easy/fast to narrow down the file you are looking for or create a new file.
I use both but would rather live in one editor.(that being VIM)

Is there some plug in that would do this?

Best Answer

You could use the vimgrep command, e.g.:

:vimgrep /searchword/ ~/**

See

:help vimgrep

for details.

Related Question