Hello,

It's my understanding that Vim 9 functions will get compiled and will be
faster than legacy functions, so I'm changing some stuff I've written, but
I have some questions:

1. How can I use a Vim 9 function in a mapping? Something like: nmap abc
<CMD>call Vim9Func()<cr>

2. Can I call a Vim 9 function defined in another script from a legacy Vim
script? How?

3. Can a Vim 9 function be defined inside another function? I want to call
an outer function that defines some variables and then returns a function
that will have access to those variables, as in a closure or a partial
function (where the first few arguments to the function are preset).

Examples of each would be great, if possible, please. I did look through
the documentation, but wasn't able to work these out for myself.

Thank you very much for any help!

-- 

Salman

-- 
-- 
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/CANuxnEcouJEOz%2BoNYo9HgAceC6SBv41S_jesziy8CobVTN__tg%40mail.gmail.com.

Reply via email to