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.
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.
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).
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