Hi Bram, On Tue, May 14, 2019 at 12:46 PM Bram Moolenaar <[email protected]> wrote: > > > Yegappan wrote: > > > When converting test29 into a new style test, I came across several > > instances where multiple lines of text need to be stored in a variable. > > I used the following method to do it: > > > > new > > insert > > some text > > some text > > some text > > . > > > > let text = getline(1, '$') > > > > You can also use a list literal to store the lines. But it is not readable. > > > > It will be useful to support a HERE document syntax for assigning multiple > > lines of text to a variable. Something along the lines of (similar to the > > shell > > here document syntax): > > > > let text <<HERE > > some text > > some text > > HERE > > Yeah, the list syntax is OK, but when the text contains quotes it gets a > bit messy. > > We already use this for Python, Lua, etc. >
I have created the PR #4386 that implements the support for this. https://github.com/vim/vim/pull/4386 - Yegappan -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7kscNPTbnYf4hh%2BCGbd%2BU8Yx5ZJEC0_22PpceFDcYed%2BQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
