Showing posts with label vi. Show all posts
Showing posts with label vi. Show all posts

Global search and replace in vi or vim

To perform a global search and replace in vi, use the search and replace command in command mode ( press Esc to enter command mode )


:%s/search_string/replacement_string/g