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.

8 Comments

  1. Josep

    October 26, 2012 at 6:12 am

    Even better, you can use:

    :set ic

    Reply

  2. Mathew

    October 26, 2012 at 7:17 am

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

    Reply

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

%d bloggers like this: