Saturday, October 15, 2022

vim9script autocommand not recalled more than one time ??

Hi,

Using some stuff in helper and calling them through autocommand defined in _vimrc,
it seems called vim9 def function is just called one time.


This is the autocmd in _vimrc
import './vimfiles/plugged/nv-helper.vim/autoload/nvhelper.vim' as that
autocmd BufEnter *.h,*.cpp :call that.TestImportedFunc()

This is the vim9 func:
export def TestImportedFunc(): void
  echomsg 'Imported Func is well called and tested.'
enddef


Don't understand why only on first buffer as cpp, the echomsg of this func so this func is called: just one time ?


Thank you for help
Nicolas




--
--
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/e763dc2e-56ca-4374-958a-dedc3ef71c49n%40googlegroups.com.

No comments:

Post a Comment