Editing multiple occurrances in Xcode (with Vim)
Here is a real gem of a tip burried deep within the Swift 6 migration video to edit multiple occurances of a word/keyword in one fell swoop.
Select the text
- If you are sitting at the first character in the word, use
veto select to the end of the word. - If you are in the middle of the word,
viwwill select the entire thing.
- If you are sitting at the first character in the word, use
Press Cmd+Opt+e to select the next occurance.
- This can be repeated as many times as necessary.
Type
cand make the desired change.