Multiple search in vim

I was looking at a log file and needed to highlight multiple search items to make the logs more readable. I got into multiple threads suggesting various cryptic vim commands but I was in no mood to remember them. So, I finally hit this.

This is a cool vim script which you can use to highlight multiple search patter. You can simply add a search term by doing

\":S\"earch <pattern>

By default it is configured to have four colors but you can change that. Also when you want to reset the search you can simply do:

\":S\"earchReset

\"Reblog

About Amit Agarwal

1 Trackback on “Multiple search in vim”