Deleting control line feed in string

2007-01-30 Thread Mueller Stefan
Hello, quite simple question: How can I delete a control line feed in a string I tried: Let value = substitute(string,\\n,,g) But doesn't work. In vim7, I used Let list = split(string) Let Value = list[0] But this doesn't work on vim6.3 on older machine, where we have installed that version.

Re: Deleting control line feed in string

2007-01-30 Thread Jean-Rene David
* Mueller Stefan [2007.01.30 07:56]: How can I delete a control line feed in a string :s/\\n// Should do what you want. Insert range as appropriate. Or :let value = substitute(string, n,,g) :h substitute() Discusses this specific case. HTH, -- JR

Re: Deleting control line feed in string

2007-01-30 Thread A.J.Mechelynck
Jean-Rene David wrote: * Mueller Stefan [2007.01.30 07:56]: How can I delete a control line feed in a string :s/\\n// Should do what you want. Insert range as appropriate. Or :let value = substitute(string, n,,g) :h substitute() Discusses this specific case. HTH, Jean-René, I