[TriLUG] Negative search in Vi
Kevin Hunter
hunteke at earlham.edu
Wed Apr 16 15:22:47 EDT 2008
Cool! I'm not sure I like the ex interface, but thanks for teaching me
that trick with / searches:
'/word/3' then 'n'
'/word/-2' then 'n'
Thanks,
Kevin
Carl Crider wrote:
> nice, i had not used the ex mode until reading this.
>
> On Wed, Apr 16, 2008 at 11:45 AM, <wejii at bellsouth.net> wrote:
>
>> In vi you can use the ex commands ( g for global in this case )
>> :g!/word/1
>>
>> This will go to each line after "word" when you type "n" (next).
More information about the TriLUG
mailing list