Re: Deleting control line feed in string
- Jean-Rene David wrote:
> * Mueller Stefan [2007.01.30 07:56]:Jean-René, I think you and I don't understand Stefan's question the same way,
>> How can I delete a control line feed in a string
> Should do what you want. Insert range as
> :let value = substitute(string, "\\\\n","","g")
> :h substitute()
> Discusses this specific case.
so let's ask:
Stefan: Does your string contain backslash-n (two characters), in which case
Jean-René's solution should work, or does it contain ^J (0x0A aka linefeed,
one control character) in which case we should try "\n" instead, and try to
find something else if it doesn't work?