vim9script autocommand not recalled more than one time ??

2022-10-15 Thread Nicolas
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

Re: gVim in Windows opens external console for bang ex-commands

2022-10-15 Thread Enan Ajmain
On Sat, 15 Oct 2022 11:48:33 +0100 Bram Moolenaar wrote: > This is intended, because executing a console command only works > properly in a console window. However, since the terminal window has > been added to Vim, you can add the "!" flag to 'guioptions' to execute > the command in a terminal

Re: gVim in Windows opens external console for bang ex-commands

2022-10-15 Thread Bram Moolenaar
> Ex-commands like `:!dir` is spawning a console, upon which the external > command is being executed and the result is being shown. Afterwards, > both the external console _and_ gVim each presents a Press Enter prompt. > > I haven't used gVim before. Not more than a cursory glance anyway. I

gVim in Windows opens external console for bang ex-commands

2022-10-15 Thread Enan Ajmain
Ex-commands like `:!dir` is spawning a console, upon which the external command is being executed and the result is being shown. Afterwards, both the external console _and_ gVim each presents a Press Enter prompt. I haven't used gVim before. Not more than a cursory glance anyway. I was wondering

Re: E122 Def Function Vim9 already exists due to reentrancy autocommand side effect

2022-10-15 Thread N V
Hum, considering this autocommand below, I notice that it calls imported def function UnderLineHeaders() only on the first entering file.h, not the others. Don"t understand why ? Thank you for help Nicolas -- * _vimrc: * import autoload

Re: E122 Def Function Vim9 already exists due to reentrancy autocommand side effect

2022-10-15 Thread N V
Hum, seems to be not fixed, I got this error * _vimrc: * autocmd BufEnter *.cpp,*.hpp,*.h,*.c call that.UnderLineHeaders() *_autoload/myhelper/myhelper.vim: * *export def UnderLineHeaders*(): void echomsg 'UnderLineHeaders called for buffer ' .. expand("%:p") some stuff if