How do I Perform a Case Insensitive Search in Vim?

Because I’m tired of forgetting how to set this option, I’m putting it here.

In Vim, and I presume vi as well, if you want to search your document with case insensitivity, simply use the following command:

:set ignorecase

From then on you can search a document with no regard to case. /AllowUsers is the same search as /allowusers.


  1. Josep

    October 26, 2012 at 6:12 am

    Even better, you can use:

    :set ic


  2. Mathew

    October 26, 2012 at 7:17 am

    You can also put that in your .vimrc file for a permanent setting.


Leave a Reply

Follow TheNubbyAdmin!

follow us in feedly

Raw RSS Feed:

Contact Me!

Want to hire me as a consultant? Have a job you think I might be interested in? Drop me a line:

Contact Me!

Subscribe via Email

Your email address is handled by Google FeedBurner and never spammed!

The Nubby Archives

Circle Me on Google+!

Photos from Flickr

Me on StackExchange

The IT Crowd Strava Group

%d bloggers like this: