vivim search and replace FAQ: How do I search and replace in vim? A lot of people ask me how to perform a global search and replace operation in the vi editor. The vim editor is anything but intuitive, but for some reason I can remember this global search and replace syntax pretty easily.