LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Vim search pattern question

[ILUG] Vim search pattern question

Feargal Reilly feargal at helgrim.com
Fri Feb 15 14:29:10 GMT 2002


At 13:33 15/02/02, you wrote:
>On Fri, Feb 15, 2002 at 01:26:37PM +0000, Feargal Reilly wrote:
> > Sorry, that should be
> > d/}/0
>
>actually, d/^}/0, but that's just a niggle.  how cool are you?  thanks,
>i've wanted to do that as well.

If we're niggling, the ^ was superflous in the example. But that's a niggle 
at a niggle :)

>ok, so to give back something useful for that one...
>
>if you want to advance to the next " on a line, just type f".  note this
>only works on one line.  ; will repeat the search.  i find it useful,
>say, in /etc/named.conf where i might need to replace an ip address
>(1.2.3.4) with another one (5.6.7.8).  since named.conf usually has
>semicolons following i can usually do cf;5.6.7.8;<esc> and then /1.2.3.4
>and do .n.n.n. until i've replaced all the ones i want to replace.

or :%s/1\.2\.3\.4/5\.6\.7\.8/c and the y/n for each

>kevin
>
>--
>kevin at suberic.net          buffy: come on, can't you put your foot down?!
>fork()'ed on 37058400      giles: it *is* down.
>meatspace place: orbit     buffy: one of these days you're going to have to
>http://suberic.net/~kevin         get a grown up car.  --inca mummy girl
>
>--
>Irish Linux Users' Group: ilug at linux.ie
>http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
>List maintainer: listmaster at linux.ie

Feargal Reilly.
http://www.helgrim.com/





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell