# 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>
