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
- AS400 Job Scheduler
- Make del.icio.us bookmarks
- Three Languages For Java Programmers to Learn
- 10 Really as400 Helpful APIs
- as400 commands and APIs you'll use for handling messages
- Free AS400 & iSeries Software Tools & Utilities Downloads
- Four Hundred Guru--Admin Alert: Moving Libraries Between i5/OS Partitions, Part 1
- Common Gateway Interface (CGI) on the as400 / iSeries
- Recommended PHP reading list
- Difference between SFLINZ and SFLCLR keyword?
No comments:
Post a Comment