Re: Memory is used up when I replace \t0\n to \n

2009-09-15 Fir de Conversatie Yakov Lerner
On Fri, Sep 11, 2009 at 06:57, Matt Wozniski m...@drexel.edu wrote: On Thu, Sep 10, 2009 at 4:13 AM, John Beckett wrote: Aleafs wrote: :1,$ s/\t0\n/\n/g Note that :% is a shortcut for :1,$ In a substitute, \n means two different things: - In the pattern, it refers to a newline.

Memory is used up when I replace \t0\n to \n

2009-09-10 Fir de Conversatie Aleafs
Dear all, A bug seems appeared when I tried to delete the last column of a text file (700K bytes, 20K lines ). Memory is used up and the computer need to be reboot when I oprate as below: :1,$ s/\t0\n/\n/g In the other hand, command like this works normal: :1,$ s/\t0$//g The version of my

RE: Memory is used up when I replace \t0\n to \n

2009-09-10 Fir de Conversatie John Beckett
Aleafs wrote: :1,$ s/\t0\n/\n/g In a substitute, \n means two different things: - In the pattern, it refers to a newline. - In the replacement, it refers to a null byte (8 zero bits). You can see this at ':help :s' by following the first two links. In a replacement, '\r' inserts a newline.

Re: Memory is used up when I replace \t0\n to \n

2009-09-10 Fir de Conversatie Aleafs
Thanks a lot. Expecting your conclusion On 9月10日, 下午4时13分, John Beckett johnb.beck...@gmail.com wrote: Aleafs wrote: :1,$ s/\t0\n/\n/g In a substitute, \n means two different things: - In the pattern, it refers to a newline. - In the replacement, it refers to a null byte (8 zero bits).

Re: Memory is used up when I replace \t0\n to \n

2009-09-10 Fir de Conversatie Matt Wozniski
On Thu, Sep 10, 2009 at 4:13 AM, John Beckett wrote: Aleafs wrote: :1,$  s/\t0\n/\n/g Note that :% is a shortcut for :1,$ In a substitute, \n means two different things: - In the pattern, it refers to a newline. - In the replacement, it refers to a null byte (8 zero bits). You can see