Writing these down because I always forget…
Replace all occurances of something
- create a selection. For example, using x for lines, v for a flexible selection, or % for the whole file
- search in the selection with s followed by whatever you want to search for, then enter
- (this will create a whole bunch of cursors) use c to change the text and enter insert-mode to replace