Search code examples
stringsearchvimgrepack

Vim CommandT- like search for strings


Is there a way in vim to search (grep/ack etc..) for strings in files in a similar fashion like one would do in CommandT?

So say that I invoke the search window. Possible matches for the string I wrote so far will start to show while I continue typing.


Solution

  • I don't think there is any native (as in :set findasyoutype) way to do exactly what you want.

    But there's a plugin for that ! Well, at least three:

    • LustyExplorer provides this feature through its :LustyBufferGrep command. It requires Vim to be compiled with Ruby support.
    • CtrlP too, provides this feature through the line extension.
    • You can also try FuzzyFinder which I've never used.