Tuesday, October 13, 2015

Re: Passing parameters to Ruby within vimscript...

Excellent, thanks for the prompt response Marc.

In case anyone reads this thread, the exact invocation is:

xoo = VIM::evaluate('g:xoo')



On Tue, Oct 13, 2015 at 10:06 AM, Marc Weber <marco-oweber@gmx.de> wrote:
Typically you use the vim API to get values from vim. Eg

let g:xoo= "value"
ruby <<
  xoo = vim.eval('g:xoo')
END

or the like

Marc Weber

--
--
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

---
You received this message because you are subscribed to a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/tAh-NXU_N0I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Sonny.
----------------------------------------------------------------------------
Be true to your work, your word, and your friend. Henry David Thoreau.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: