Vim case insensitive search

Posted by Drakonen on November 9, 2005 in Programming, Tech | Short Link

Not much of news, but I ran into this problem today, do a case insensitive search in vim.

this can be done with:
:set ci or :set caseinsensitive
This makes future searches case insensitive.

A per search way is this:
/pattern\c
Notice the \c. It does not really matter where you put that \c as /foo\cbar also works.

Facebook Twitter Email

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Copyright © 2005-2012 Draakwired All rights reserved.
The Shades theme, version 1.7, is a BuyNowShop.com creation.

Social links powered by Ecreative Internet Marketing