Re: Deleting question

2006-09-13 Thread Andy Wokula
> why not > > :1;/Citations: /-1d > > of course, this is linewise, what's before "Citations: " in the same > line is not deleted. > > Andy oops, just overlooked Yakov's answer, sorry. Andy ___ Telefonate ohne weitere Ko

Re: Deleting question

2006-09-13 Thread Andy Wokula
Nikolaos A. Patsopoulos schrieb: > Hi, > > I'm trying to delete several lines from the beginning of file till the > appearance of a specific pattern, without deleting the pattern. I have > used the following command: > > :1,/Citations: /d/e-10 > > but the offset doesn't work. > > Thanks in adva

Re: Deleting question

2006-09-13 Thread A.J.Mechelynck
Boyko Bantchev wrote: On 9/13/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: (a) if the pattern is at the start of a line: :1,.-1d (b) otherwise hdgg will delete everything preceding it to the start of the file. When I started answering Nikolaos, I was also initially thinkin

Re: Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
A.J.Mechelynck wrote: Nikolaos A. Patsopoulos wrote: Yakov Lerner wrote: On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Yakov Lerner wrote: >> > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL P

Re: Deleting question

2006-09-13 Thread Yakov Lerner
On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Yakov Lerner wrote: >> > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> >> Yakov Lerner wrote: >> >> > On 9/13/06, Nikolaos A.

Re: Deleting question

2006-09-13 Thread A.J.Mechelynck
Nikolaos A. Patsopoulos wrote: Yakov Lerner wrote: On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Yakov Lerner wrote: >> > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> >>

Re: Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
Yakov Lerner wrote: On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Yakov Lerner wrote: >> > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> >> >> I'm trying to d

Re: Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
Yakov Lerner wrote: On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Yakov Lerner wrote: >> > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> >> >> I'm trying to d

Re: Deleting question

2006-09-13 Thread Yakov Lerner
On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Yakov Lerner wrote: >> > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> >> >> I'm trying to delete several lines f

Re: Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
A.J.Mechelynck wrote: Nikolaos A. Patsopoulos wrote: Hi, I'm trying to delete several lines from the beginning of file till the appearance of a specific pattern, without deleting the pattern. I have used the following command: :1,/Citations: /d/e-10 but the offset doesn't work. Thanks in

Re: Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
Yakov Lerner wrote: On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm trying to delete several lines from the beginning of file till the >> appearance of a specific pattern, withou

Re: Deleting question

2006-09-13 Thread A.J.Mechelynck
Nikolaos A. Patsopoulos wrote: Hi, I'm trying to delete several lines from the beginning of file till the appearance of a specific pattern, without deleting the pattern. I have used the following command: :1,/Citations: /d/e-10 but the offset doesn't work. Thanks in advance, Nikos Well

Re: Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
Yakov Lerner wrote: On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm trying to delete several lines from the beginning of file till the >> appearance of a specific pattern, withou

Re: Deleting question

2006-09-13 Thread Yakov Lerner
On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm trying to delete several lines from the beginning of file till the >> appearance of a specific pattern, without deleting the pattern

Re: Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
Yakov Lerner wrote: On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Hi, I'm trying to delete several lines from the beginning of file till the appearance of a specific pattern, without deleting the pattern. I have used the following command: :1,/Citations: /d/e-10 but the offse

Re: Deleting question

2006-09-13 Thread Yakov Lerner
On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Hi, I'm trying to delete several lines from the beginning of file till the appearance of a specific pattern, without deleting the pattern. I have used the following command: :1,/Citations: /d/e-10 but the offset doesn't work. Try

Re: Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
Boyko Bantchev wrote: On 9/13/06, Nikolaos A. Patsopoulos <[EMAIL PROTECTED]> wrote: Hi, I'm trying to delete several lines from the beginning of file till the appearance of a specific pattern, without deleting the pattern. Does the following work for you? gg /Citations: / d0 :1,.-1d Cheers

Deleting question

2006-09-13 Thread Nikolaos A. Patsopoulos
Hi, I'm trying to delete several lines from the beginning of file till the appearance of a specific pattern, without deleting the pattern. I have used the following command: :1,/Citations: /d/e-10 but the offset doesn't work. Thanks in advance, Nikos