Ni Va wrote:
> This is in my _vimrc
> nnoremap <F6> :exe '!start '.expand('$vimruntime/gvim.exe').' -c
> "call readxml\#mainruby()"'<cr>
>
>
> Under this dir vimfiles\plugged\readxml\autoload this code is in a script
> called readxml.vim
> vim9script
> # MIT License. Copyright (c) 2021 June 02 Niva.
>
> # Ruby code section
> def readxml#mainruby()
> call s:rubyCaller()
> enddef
>
> def s:rubyCaller()
>
> #
https://ruby-doc.org/core-3.0.0/
> #
http://www.ohler.com/ox/#label-Object+Dump+Sample-3A
>
> ruby << EOF
>
> # Core
> $LOAD_PATH << Vim::evaluate('expand("$vim/extensions/ruby/lib/ruby/3.0.0")')
> EOF
> enddef
>
>
> Use Case : then I type <F6>
OK, using "ruby << EOF", aka heredoc, in a :def function is not
supported yet. You can use a legacy function for now.
--
A programmer's wife asks him: "Please run to the store and pick up a loaf of
bread. If they have eggs, get a dozen". The programmer comes home with 12
loafs of bread.