Re: Embed langage print when sourcing vim9script

2022-04-09 Thread Ni Va
Thank you Bram! Maybe it's because I forgot to say I have an autocommand. I am surprised to see out of print('LuaXmlParser') when I source this vim9script. Thank you again Bram. NV # Syntax / Filetype - Helper {{{ def g:SwitchFtHelper(arg: string): void if (arg == 'leave') au! endif

Re: Embed langage print when sourcing vim9script

2022-04-09 Thread Bram Moolenaar
> Is it normal to get print of embed langage when I source vim9script ? > > Thank you > NV > > def g:SwitchFtHelper(): void # Syntax / Filetype - Helper {{{ > > if ( !exists('g:cachebufnr') ) > g:cachebufnr = bufnr('%') > g:cacheft = &ft > StampedEcho( 'Cached filetype is ' .. g:

Embed langage print when sourcing vim9script

2022-04-08 Thread Ni Va
Hi, Is it normal to get print of embed langage when I source vim9script ? Thank you NV def g:SwitchFtHelper(): void # Syntax / Filetype - Helper {{{ if ( !exists('g:cachebufnr') ) g:cachebufnr = bufnr('%') g:cacheft = &ft StampedEcho( 'Cached filetype is ' .. g:cacheft .. ' and bu