I think the following paragraph establishes the point that vim 9.1.0580 doesn't automatically load the termdebug plugin, consistently with prior versions and withe help file.
Start with an empty vimrc file in an otherwise empty ~/.vimrc configuration directory. The
:Termdebugcommand can't be found until you type:packadd termdebugin the vim command line.
Now exit vim and append the following line to the otherwise empty ~/.vim/vimrc file:
packadd termdebug
and run vim. A new error message temporarily holds vim startup:
[termdebug] Termdebug already loaded.
Press ENTER or type command to continue
(Side note: perhaps this message is useful but it's certainly annoying).
So why is the plugin already loaded if we established that vim doesn't load it automatically? How can I load the termdebug plugin from vimrc without errors?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Following the "already loaded" message, if I then execute :Termdebug vim shows the following error message:
E117: Unknown function: StartDebug
and does not start the debugger.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Thanks for reporting. I will look into that asap.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
as mentioned in a different issue, you need to use packadd! termdebug inside your vimrc file
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Thank you. I can confirm that it works OK with packadd!. If this is the final solution, may I suggest to mention the remedy in help termdebug-starting.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
as mentioned in a different issue, you need to use
packadd! termdebuginside your vimrc file
@chrisbra the link does not seem to work. I would be genuinely curious why the ! is needed :)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@ubaldot does this link work for you? #15058
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@chrisbra the link does not seem to work. I would be genuinely curious why the ! is needed :)
It's documented at :h packadd ;)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #15256 as completed via 27c5598.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()