Case-insensitive searching in vi

By default, all searches in vi are case-sensitive. To do a case-insensitive search, go into command mode (press Escape), and type :set ignorecase. You can also type :set ic as an abbreviation.

To change back to case-sensitive mode, type :set noignorecase or :set noic in command mode.

If you tend to use this feature a lot, consider putting set ignorecase into your vi configuration file. See the article on customizing vi.


Revision #2
Created 2006-10-16 17:27:47 UTC by Rozett, Keith
Updated 2011-05-10 22:09:55 UTC by Franks, Mike