" pygdb
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- autocmd Filetype c,cpp :python import sys
- autocmd Filetype c,cpp :python sys.path.append("<dir>")
- autocmd Filetype c,cpp source <dir>/pygdb.vim
- autocmd Filetype c,cpp call GDBMapDefaults()
+ autocmd Filetype c,cpp :python import sys
+ autocmd Filetype c,cpp :python import vim
+ autocmd Filetype c,cpp :python pygdbdir = "<dir>"
+ autocmd Filetype c,cpp :python sys.path.append(pygdbdir)
+ autocmd Filetype c,cpp :python vim.command("source %s/pygdb.vim" % pygdbdir)
+ autocmd Filetype c,cpp call GDBMapDefaults()
where you replace <dir> by the corresponding path of pygdb. You may want to
execsign = None
def gdbLaunch():
- global gdbBps, clientcmd
+ global gdbBps, clientcmd, pygdbdir
clientcmd = vim.eval("input('Client commando: ', '%s')" % clientcmd)