On Friday, October 26, 2012 4:27:48 AM UTC-5, Jonathan del Strother wrote:
>
> I was under the impression that vimscript didn't support heredocs, so
> I was surprised to discover that this works :
>
> ruby << EOF
> print "hello"
> EOF
>
> ... swiftly followed by disappointment as I couldn't persuade it to
> work with regular string literals ( eg "let foo=<<EOF...", or "MyFunc
> << EOF...".
>
That's because the commands you see are not heredoc. That is just how a few specific commands work to allow embedding scripts from other scripting languages.
:help :ruby
:help :perl
:help :python
:help :lua
:help :mzscheme
:help :tcl
I think this is the full list of all the commands that work this way.
--
You received this message from the "vim_use" 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
Friday, October 26, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment