Note that there are some explanatory texts on larger screens.

plurals
  1. POmultiple searching in vim (i'm picky)
    text
    copied!<p>I want to be able to search for multiple strings in vim. There are a number of solutions I've come across, but they all suck:</p> <ul> <li><a href="https://stackoverflow.com/questions/131559/advanced-searching-in-vim">Advanced searching in Vim</a></li> <li><a href="https://stackoverflow.com/questions/704434/is-there-any-way-to-highlight-multiple-searches-in-gvim">Is there any way to highlight multiple searches in (g)vim?</a></li> <li><a href="http://www.vim.org/scripts/script.php?script_id=1183" rel="nofollow noreferrer">http://www.vim.org/scripts/script.php?script_id=1183</a></li> </ul> <p>First off, typing anything other than '/' to begin a search is a fail. ":match SearchName search_string" is really bad. ":Search foo" is bad as well.</p> <p>So here are my requirements for a good multiple search solution in vim:</p> <ol> <li>Must be able to type /</li> <li>Clearing search must be easy</li> <li>Each search should use a different color</li> </ol> <p>Ideally, some other criteria would be met:</p> <ol> <li>Should be able to easily clear either last search or all searches</li> <li>Should be able to easily find next result of either last search or any current search</li> <li>Shortcuts * and # should work similarly</li> </ol> <p>If anyone knows of any solution that satisfies these conditions (or at least comes closer than the solutions mentioned above), I'd love to see it.</p> <p><strong>Edit:</strong> MultipleSearch2, from one of the links above, did very bad things to a lot of my syntax highlighting. It's nowhere close to useful for me.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload