Wednesday, December 30, 2009

Re: How escape chars in strings in functions

On Wed, 30 Dec 2009 19:14:50 -0600, Stahlman Family wrote:


>
> Nick,
> When using the = register with the :put command, you have to escape both
> | and ". Try the following...
> put='<a href=\"#footnote1\" id=\"back1\">[1]</a>'
>
> :help :put
>
> Hope it helps...
> Brett Stahlman
>

Thanks, that helps a lot. More than maybe you meant since I now realise
':h :put' is different to ':h put'. I can't quite believe I never knew
that. <g>

--
NickC

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

No comments: