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
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
> 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
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
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
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