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
- Journaling for Performance
- AS400 PRTF - Report Layout Utility
- RIAA sues the dead | The Register
- AS400 / ISeries Freeware / Shareware
- ibm as400 manuals v5r4
- Javalobby - Java J2EE Programming Forums - Coldtags suite 2.1: 210+ custom JSP tags
- Creating an as400 Query
- as400 Iseries Tips
- AS400 APIs
- AS400 API - QCMDEXC - Execute Command
No comments:
Post a Comment