I am trying to use :Termdebug
in Vim 8.1 on a CentOS machine. The default version of GDB at /usr/bin/gdb
is less than the required v7.12. However, I have newer versions of GDB within devtoolset
distributions I have installed with yum
. To enable newer GDB versions, I need to run source /opt/rh/devtoolset-{version}/enable
.
I don't want to source that script in my .bashrc
and disrupt my default environment. Is there anyway I can run that command on running :Termdebug
?
Is this possible with :TermdebugCommand
?
g:termdebugger
variable to the gdb you want to run.