Sunday, December 11, 2022

Re: vim9script userdef

Thank you Salman, your advise seems to match what I need. In Progress... :)


Le samedi 10 décembre 2022 à 19:07:50 UTC+1, Salman Halim a écrit :
On Sat, Dec 10, 2022 at 9:23 AM N i c o l a s <niva...@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/39b89360-9f68-424e-aa9b-fc004588280an%40googlegroups.com.

No comments: