vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vile] searching and deleting


From: hymie!
Subject: [vile] searching and deleting
Date: Thu, 23 Aug 2012 09:42:27 -0400

Greetings.  I've run into an issue that I can't seem to figure out.

I have to edit a horrible file.  The file is formatted like this:

==========
[Software\\Classes\\AppleSoftwareUpdateAdmin.ASUTaskSched.1\\CLSID] 1321195617
@="{BB46F03E-7CD2-489F-8F95-BB950F395FDB}"

[Software\\Classes\\AppleSoftwareUpdateAdmin.ASUTaskSchedul] 1321195617 
@="ASUTaskScheduler Class"

[Software\\Classes\\AppleSoftwareUpdateAdmin.ASUTaskSchedul\\CLSID] 1321195617
@="{BB46F03E-7CD2-489F-8F95-BB950F395FDB}"
==========

So what I'm trying to do is
(*) search for 1321195617  ( /1321195617 )
(*) go to the beginning of the line ( 0 )
(*) delete the section ( d/^\[ )
(*) find the next instance of 1321195617 ( n )

Unfortunately, the "n" command is now using ^\[ as the "last search to
repeat" rather than my actual search.

Is there a way that I can accomplish this, where "n" will repeat the last
search I **meant** to do, not the last search I happened to type?

Thanks.

--hymie!    http://lactose.homelinux.net/~hymie    address@hidden
-------------------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]