Quantcast
Channel: How to do case insensitive search in Vim - Stack Overflow
Viewing all articles
Browse latest Browse all 17

Answer by DrAl for How to do case insensitive search in Vim

$
0
0

As well as the suggestions for \c and ignorecase, I find the smartcase very useful. If you search for something containing uppercase characters, it will do a case sensitive search; if you search for something purely lowercase, it will do a case insensitive search. You can use \c and \C to override this:

:set ignorecase:set smartcase/copyright      " Case insensitive/Copyright      " Case sensitive/copyright\C    " Case sensitive/Copyright\c    " Case insensitive

See:

:help /\c:help /\C:help 'smartcase'

Viewing all articles
Browse latest Browse all 17

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>