> For the complete documentation index, see [llms.txt](https://til.duyet.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.duyet.net/unix/find-and-replace.md).

# Find and replace

## Find

```
:vimgrep /Duyet/gj src/**/*
```

## **Substitute within all files that contain**

```
:cfdo %s/Duyet/Hihi/gc
```

## Save all files

```
:cfdo update
```

Source: <https://vi.stackexchange.com/a/10310>
