This is a quick article to show you what is in my opinion, the easiest way to perform a global search and replace in vi. This post assumes you already have a basic understanding of vi.
While vi is a full screen editor, it’s foundation, is still based on a line editor.
Let’s say that you have to perform a global search for the word align and replace it with the word alignment. A very simple task which in a modern editor is a no-brainier, while in vi, it requires a little knowledge. Continue reading “vi Global Search and Replace”