Re: insert multitline from ruby script
- On 15 March 2011 14:02, pierre wrote:
> Ahem!... another difficultyInstead of sytem(...) you can call any Vim function...in particular
> The technique
> <C-R>=system("ruby /path/to/file")
> works nicely apart from a problem: I can no longer
> access things like VIM::Buffer in my ruby script, while
> they work ok if I use
> :rubyf /path/to/file
> on the command line.
you can supply your own. For example:
You can now <C-R>=Test() and "hi!" will be inserted into the buffer.
If you need more help with this you should ask on the vim_use Google
You received this message from the "vim_mac" 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