Hi,
Discl.: AFAIK the following doesn't exist (yet?) in Vim, but I may have missed
it.
Is there a command somewhere to put or let block of raw lines in VimL.
I'm perfectly aware of append() and setline(), but I'm looking for something
that'll let me write things like:
:put << EOF
line1
line 2
Line 3
EOF
" + code like: %s/\v\s*(.{-})\s*\ze\d/\u\1 /
And also
:let expected << EOF
Line 1
Line 2
Line 3
EOF
The objective is to be able to write unit tests with as few boilerplate code as
possible in order to assert ll == getline(1, '$').
Of course this could be achieved with
:call setline(1, ['line1', ' line 2', 'Line 3'])
:let expected = ['Line 1', 'Line 2', 'Line 3']
But this'll be extremely cumbersome to maintain.
--
Luc Hermitte
--
--
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].
For more options, visit https://groups.google.com/d/optout.