---

Linux.com: Vim Tips: The Basics of Search and Replace

“Vim beginners may be puzzled when it comes to doing search and
replace operations in Vim. The syntax can be a bit arcane, but
after you’ve practiced, it becomes second nature. Let’s take a look
at how easy it can be.

“Let’s start by looking at searches and doing search and replace
operations within Vim. You can do a search in normal mode by using
/searchstring. This will search forward
through the file for searchstring. Likewise,
running ?searchstring will search backwards
through the file…”

Complete
Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis