Wednesday, January 11, 2023

Re: vim9 autoload script modified : How to reload it On-The-Fly

On 2023-01-11, N i c o l a s <nivaemail@gmail.com> wrote:
> Hi,
>
> Currently modifying an *autoload*/*vim9fooscript*.vim which can be started
> by typing a nnoremap as this :
>
>
> - *_vimrc* :
>
> import autoload './vimfiles/some/thing/*autoload*/*vim9fooscript* .vim'
> as thatHelp
> *nnoremap* inout <ScriptCmd> thatHelp.E10_InOut()<CR>
>
>
>
> - vimfiles/some/thing/*autoload*/*vim9fooscript*.vim
>
> def Foo which is currently modifying
>
>
> How to force "recompile" the new modified content of def Foo without touch
> the nnoremap ?

Sourcing the autoload script should clear the old definitions and
compile the new ones. See :help vim9-reload.

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 vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/tpn4bu%2414kt%241%40ciao.gmane.io.

No comments: