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 13:15:26 GMT 2002


d/}/1 will do it.
the 1 means offset of 1 line.

At 12:37 15/02/02, you wrote:
>Hi
>
>I have a question about Vim search patterns - I know I can combine the
>delete and search operators to delete up to but not including a fixed
>pattern by using d/patt, e.g. using d/^{ on the first line of the below
>function will delete all of it except the last line:
>
>void func() {
>         blah;
>}
>
>I would like to be able to delete the last line as well, e.g. delete up to
>*and including* a search pattern. Does anyone know how to achieve this? I am
>using Vim 6.0.
>
>Cheers!
>Rory
>
>--------------------------------------------
>Rory Winston,
>Developer,
>Oneline Team,
>Telewest Broadband,
>Export House,
>Woking,
>Surrey
>GU21 5RW
>
>mailto: rory.winston at telewest.co.uk
>phone:  01483 582474
>mobile: 07909 538238
>
>------------------------------------------------------------------------------
>Live Life in Broadband
>www.telewest.co.uk
>
>
>The information transmitted is intended only for the person or entity to 
>which it is addressed and may contain confidential and/or privileged material.
>Statements and opinions expressed in this e-mail may not represent those 
>of the company. Any review, retransmission, dissemination or other use of, 
>or taking of any action in reliance upon, this information by persons or 
>entities other than the intended recipient is prohibited. If you received 
>this in error, please contact the sender immediately and delete the 
>material from any computer.
>
>
>==============================================================================
>
>
>--
>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