Amit Agarwal

Linux and Photography Blog
marketing

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

:Search <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:

:SearchReset

Reblog this post [with Zemanta]

Enter Your Mail Address

Multiple search in vim
Hot:sun Multiple search in vimsun Multiple search in vimsun Multiple search in vimsun dark Multiple search in vimsun dark Multiple search in vim

You are welcome to my blog. Please feel free to share your Good or Bad experiences with me through comment or through email.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • blogmarks
  • Blogosphere News
  • co.mments
  • HelloTxt
  • Ping.fm
  • Reddit
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • BlinkList
  • Diigo
  • email
  • Identi.ca
  • LinkedIn
  • Live
  • MyShare
  • MySpace
  • PDF
  • SheToldMe
  • Slashdot
  • Socialogs
  • Tumblr

related post

Technorati Tags: , , , , ,

Multiple search in vim

Facebook comments:

1 Comment »

  1. [...] This post was mentioned on Twitter by Amit Agarwal, Amit Agarwal. Amit Agarwal said: I just post Multiple search in vim on http://ping.fm/LlNd2 [...]

RSS feed for comments on this post. TrackBack URL

Leave a comment



IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 9 + 10 ?
Please leave these two fields as-is:
suggest

© 2010 Amit Agarwal | Entries (RSS) and Comments (RSS) | Valid CSS 2.1 Valid XHTML 1.0 Transitional

Powered by Wordpress 3.0.1, design by Abel, handcrafted by Abel County Laboratories, based on Wsg Standards Wsg Standards

Switch to our mobile site

Page optimized by WP Minify WordPress Plugin