Tuesday, March 31, 2020

How to change filtetype when cursor is inside a ruby embbed code section

Hi all,

Using this kind of script to embed ruby code, how can I change filetype from vim to ruby when cursor is inside [ << EOF , EOF ] section.


vimscript_func

ruby << EOF
EOF

endfunc

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5968a0ca-5589-4423-80a8-a6f8ff68976a%40googlegroups.com.

No comments: