Saturday, October 10, 2009

how to enable incremental search in vim

It's not that hard. All you do is:

:set incsearch


The key is to actually know the words to google for. Basically the installation of gvim on OpenSuse 11.1 did not have incremental search enabled. So I searched for smart search and somehow got the right phrase I needed. Once I knew that this feature meant incremental search, it was easy.

So for those who are unclear on what incremental search is according the vim help:


While typing a search command, show where the pattern, as it was typed
so far, matches. The matched string is highlighted. If the pattern
is invalid or not found, nothing is shown. The screen will be updated
often, this is only useful on fast terminals.







No comments: