|
|
Subscribe / Log in / New account

Vim tips: The basics of search and replace (Linux.com)

Linux.com has some Vim tips. "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."

to post comments

Vim tips: The basics of search and replace (Linux.com)

Posted Jun 28, 2006 22:56 UTC (Wed) by astrophoenix (guest, #13528) [Link]

that was nice. I hadn't seen the b and e qualifiers to search before. I'm
used to perl regexes, and I always forget which 'metacharacters' have to
have a \ in vim searches to work


Copyright © 2006, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds