iedit example - multiple find and replace
If you have text you want to edit in multiple places at the same time, rather than the traditional find/replace, you can select all the regions and use multiple cusors to edit all regions simultaneously.
- Put the cursor over the word you want to replace
v
to enter visual (select) modeSPC v
to select word or regionv
increases the selected regionV
to reduce selected region
e
for iedit stateC-;
to edit selectionn
jump to next matching selected regionp
jump to previous matching selected regionM-j
deselect current regionS
substitute text in all regionsD
delete all selected regions
SPC s e
matches all instances of a region under the cursor (iedit state)