Vim: Search and Replace
Efficiently find and replace text within your file using these powerful commands.
| Command | Description |
|---|---|
/pattern | Search forward for pattern. |
?pattern | Search backward for pattern. |
n | Repeat the last search in the same direction. |
N | Repeat the last search in the opposite direction. |
:%s/old/new/g | Replace all occurrences of old with new in the file. |