vim/gvim has a default case sensitive search which is what I want most of the time.
There are times however when I need case insensitive searches. There are 2 ways to do this:
- First you can do
This sets the searches to ignore the case. Use :set noignorecase to revert to case sensitive search.
- The problem with that is if (like me) you only want to ignore case just for one search. It's a lot of keystrokes just to do this for one search. This takes care of that case. Use \c anywhere in the search pattern to ignore case. This does not touch the global setting of case.
Easy as pie. :)