On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use
<[email protected]> wrote:
> Am 10.02.2018 um 17:40 schrieb Ni Va:
>>
>> Hi,
>>
>> Like :h ruby says, I use this kind of script ruby interface below.
>>
>> How can i make vim switch automatically to ruby syntax in EOF section and
>> rest of time stay in vim syntax ?
>> Thank you
>>
>>
>> Example Vim script: >
>>
>>         function! RedGem()
>>         ruby << EOF
>>         class Garnet
>>                 def initialize(s)
>>                         @buffer = Vim::Buffer.current
>>                         vimputs(s)
>>                 end
>>                 def vimputs(s)
>>                         @buffer.append(@buffer.count,s)
>>                 end
>>         end
>>         gem = Garnet.new("pretty")
>>         EOF
>>         endfunction
>
>
> Configurable:
>     :h ft-vim-syntax
>
> --
> Andy

Under :h g:vimsyn_embed it says: «By default, g:vimsyn_embed is a
string supporting interpreters that your vim itself supports.»
However, my gvim is compiled with +lua -mzscheme +perl +python
-python3 +ruby +tcl, and I don't set that variable in my vimrc (or
anywhere else AFAIK), yet it is set to 'lmpPr' as if I had compiled
with +mzscheme -tcl. How come?

N.B. The same value is set if I run "view -u
/usr/local/share/vim/vim80/vimrc_example.vim ~/.vimrc" i.e. _viewing_
my vimrc (so that the vim ftplugin gets sourced) but not _sourcing_
it.

Best regards,
Tony.

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

Raspunde prin e-mail lui