Saturday, December 10, 2022

Re: vim9script userdef

On Sat, Dec 10, 2022 at 9:23 AM N i c o l a s <nivaemail@gmail.com> wrote:
Port in vim9script, do i have to pass by exécutable command as you de scribe it ? 

Thank you Marc

Le samedi 10 décembre 2022 à 15:17:52 UTC+1, N i c o l a s a écrit :
         let defdict[type] = g:tagbar_type_{type}


Maybe you could try prefixing the command with 'legacy', but I think you might have better success with just replacing g:tagbar_type_{type} flavour variables with just a dict called g:tagbar_type and then 'type' could just be a key: g:tagbar_type[type], much like you have with defdict on that same line. I haven't looked at the actual source, so I can't speak to whether this will cause other problems, but this is something I've had success with in my own scripts.

--
--
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/CANuxnEeixyW9cAR-3TArL_VENtE_Yx0MeBTS4f5HTv6AF5Btjw%40mail.gmail.com.

No comments:

Post a Comment