I have coded this instead to remove all autocommands of the group
echomsg "EnhancedDiffLayout_autocmd disabled"
augroup difflayout
autocmd!
augroup END
Le lundi 6 décembre 2021 à 13:36:41 UTC+1, Ni Va a écrit :
> Hi,
>
> I the plugin directory vim9script of a plugin of mine,
Hi,
I the plugin directory vim9script of a plugin of mine, i would like to
toggle autocmd.
In *plugin part*, I got this augroup
foobar/*plugin*/foobar.vim
augroup difflayout
au!
autocmd CursorHold *.tmp call EnhancedDiffLayout()
augroup END
meanwhile in the following *autoload