Very useful for a guy with little vim knowledge
Description
vi and vim have powerful searching capabilities because they bring to bear the richness of regular expressions.
Directions
To search for the next occurence of the text 'maybe' from the current cursor position, type:
/maybe<ENTER>
Search backward from the current position by using ? instead of / in the command.
Once you have searched for something, you can find the next occurrence by pressing n or the previous occurrence with N.
Searching in vi/vim is enhanced with regular expressions. For example, to find the next occurence of the text 'Total' that occurs at the beginning of a line, use:
/^Total
Tuesday, December 07, 2004
Subscribe to:
Post Comments (Atom)
Popular Posts
- Java Examples - JExamples.com
- as400 iSeries NetServer Disabled user profiles
- iReport - OpenSource Java Reporting Tool
- Create a Custom Live Linux CD - Leveraging BusyBox and OpenSSH
- Search for text in vi or vim
- IBM eServer iSeries - iSeries NetServer: Command Line Setup
- Super $500 Myth Project
- Encode HTML Entities - Showing code in blogs
- HOW TO make a Powerbook in to a Wi-Fi access point!
- Reno County is preparing to move from an AS400 computer system to a personal-computer-based system
No comments:
Post a Comment