Re: vim9 autoloaded functions in expression register

2023-03-16 Fir de Conversatie Maxim Kim
Your "old way" example most likely works because "misc#" finds the misc.vim script file in an autoload directory. The "import" line doesn't matter (I haven't tried this though). Indeed, import doesn't matter, it was just a leftover from previous try and not needed here. I can't think of

Re: vim9 autoloaded functions in expression register

2023-03-16 Fir de Conversatie Bram Moolenaar
Maxim Kim wrote: > Is there a way to use vim9 autoloaded function in expression register? > > The old way works: > > vim9script > import autoload 'misc.vim' > iab p! println!()=misc#Eatchar('\s') > > the dotted call doesn't: > > vim9script > import autoload 'misc.vim' > iab p! println!()=m

vim9 autoloaded functions in expression register

2023-03-13 Fir de Conversatie Maxim Kim
Is there a way to use vim9 autoloaded function in expression register? The old way works: vim9script import autoload 'misc.vim' iab p! println!()=misc#Eatchar('\s') the dotted call doesn't: vim9script import autoload 'misc.vim' iab p! println!()=misc.Eatchar('\s') E121: Undefined variable: m