Wednesday, December 23, 2009

Re: How using put = stringVar with carriage return into stringVar

> let stringVar = sometext\nsomefootext'
>
> exec 'put = stringVar'
>
> does not interpret carriage return

You need double-quotes instead of single-quotes so the escaping gets
translated:

:let abc="abc\ndef\nghi"
:put=abc

does the trick for me.

-tim


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: