The Yank Register
- Start at the first character of the first line collection = getCollection(); process(somethingInTheWay, target);
- Yank the word "collection" with -
yiw
- Move to the beginning of the word "somethingInTheWay" with -
jww
- Delete the word "somethingInTheWay" with -
diw
- Paste from the Yank Register with -
"0P
- Look at the Yank Register with -
:reg "0