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

No comments:

Post a Comment