← Back to all TILs

Case-Insensitive Substitution

vim Written August 25, 2015

Use the i s-flag to perform a case-insensitive substitution (search and replace).

For instance, :%s/blog/article/gi will turn

blog bLOg BLOG Blog

into

article article article article

See :h s_flags for more details.

Other posts like this