Found and sorry.

vim9script

if exists("g:did_load_helper")
  *finish*    
endif
g:did_load_helper = 1


I thought in the help for vim9 same mecanism to prevent loading script can 
be applied. Maybe a mistake of reading from me.

Thank you Life
Nicolas
Le jeudi 12 janvier 2023 à 21:24:41 UTC+1, Lifepillar a écrit :

> On 2023-01-11, N i c o l a s <[email protected]> wrote:
> > Hum, thanks a lot Life, after one more check:
> >
> > *./vimfiles/plugged/foo-helper.vim/autoload/vim9fooscript.vim*
> >
> > vim9script
> >
> > *# some many defs func*
> >
> > export def *High_Caller*(): void
> > Sub_Called(4)
> > enddef
> >
> > def Sub_Called(code: number ): void
> > *# some job*
> > enddef
> >
> >
> > *~/_vimc*
> > import autoload './vimfiles/*plugged*/foo-helper.vim/autoload/
> > *vim9fooscript*.vim' as *Helper*
> > nnoremap io <Scriptcmd> *Helper*.High_Caller()<cr>
> >
> >
> > typing io it echoes E1091: Function is not compiled: *vim9fooscript*#
> > *High_Caller*
>
> I'd start by removing the "many function defs", and possibly simplifying
> the body fo Sub_Called(), and see if I can source without error. Then,
> I would start to gradually re-add the removed material until I find what
> is causing the error.
>
> Hope this helps,
> Life.
>
>

-- 
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/7aba787d-c2c2-4d36-b503-cd1a2bf937a3n%40googlegroups.com.

Reply via email to