> For the complete documentation index, see [llms.txt](https://ploegert.gitbook.io/til/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ploegert.gitbook.io/til/tools/vim/case-aware-substitution-with-vim-abolish.md).

# Case-Aware Substitution With vim-abolish

Substitution in vim is, by default, case-sensitive. Adding the `i` `s-flag` makes it case-insensitive. [`vim-abolish`](https://github.com/tpope/vim-abolish), on the other hand, lets you perform a case-insensitive substitution that preserves three case variants (foo, Foo, and FOO). Substitution with `vim-abolish` can be performed with `Subvert` or `S`.

For instance, `:%S/blog/article/g` will turn

```
blog Blog bLOg BLOG
```

into

```
article Article bLOg ARTICLE
```

Install `vim-abolish` and see `:h Subvert` for more details.
