Replies: 1 comment 1 reply
-
honestly, I haven't tried, whether this works with vim9 script |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say that I called my plugin
foo
with the following files:Then, inside
./lib/myfunctions.vim
, I havewhereas in
foo.vim,
I have both a mapping and a command defined:Both the mapping and the command work well, and I am satisfied.
The next step I wish to perform is to use the return value of
myfunction.MyFunc()
in vim-airline, but I am failing.What I have tried to do is to add the following to my
.vimrc
(I used the VimEnter event to trigger the autoload mechanism)
but I get the error
E121: Undefined variable: myfunctions.
Beta Was this translation helpful? Give feedback.
All reactions