Thursday, December 24, 2009

Re: Best practice to put lines into new buffer

epanda wrote:
> Hi,
>
> I have some data into Dict or List
>
>
> I use actually this command in order to put data from my List to the
> current buffer and saving it to a new file.
>
> let newContent .= join(g:myListOfLines,'')
> exec 'norm O' . newContent
>
> Is there a better solution to have a real gain of time ?
>
You could try using setline().

Regards,
Chip Campbell

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

No comments: