Thank you Mike. That's why i'm trying to apply what Salman said '' just a dict called g:tagbar_type and then 'type' could just be a key ''
Thank you Nicolas Le dimanche 11 décembre 2022 à 16:00:13 UTC+1, Mike a écrit : > On 12/10/2022 9:17 AM, N i c o l a s wrote: > > Hi Marc, > > > > > > - Not it is not OK. E488 when i try to port autoload/tagbar.vim lin386 > > > > https://github.com/preservim/tagbar/blob/master/autoload/tagbar.vim > > > > function! s:LoadUserTypeDefs(...) abort > > if a:0 > 0 > > let type = a:1 > > > > let defdict = {} > > let defdict[type] = g:tagbar_type_{type} > > Curly-brace names are not supported in Vim9. This is documented in both > :help vim9-differences > and > :help curly-brace-names > > > Le samedi 10 décembre 2022 à 15:02:35 UTC+1, Marc Chantreux a écrit : > > > >> hello, > >> > >>> let defdict[type] = g:tagbar_type_{type} > >> > >> is this ok for you? > >> > >> let type ="grep" > >> exec $"let defdict[type] = g:gitgutter_{type}" > >> > >> regards > >> marc > >> > > > > > -- -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/de66f2a2-bbb1-486f-8963-4abdaf141db9n%40googlegroups.com.