mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add Case-Insensitive Substitution as a vim til.
This commit is contained in:
18
vim/case-insensitive-substitution.md
Normal file
18
vim/case-insensitive-substitution.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Case-Insensitive Substitution
|
||||
|
||||
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.
|
||||
Reference in New Issue
Block a user