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
- Creating an as400 Query
- Library list for Web server
- ibm as400 manuals v5r4
- Encrypt Data on as400 (QC3ENCDT, Qc3EncryptData)
- AS400 Job Scheduler
- UDATE and *DATE in AS400 RPG
- OS/400 PASE Shells and Utilities
- CVS Respitory on as400 Iseries II
- AS400 APIs
- IBM WebSphere Developer Technical Journal: Maintain continuous availability while updating WebSphere Application Server enterprise applications
No comments:
Post a Comment