From 2021af9ecfafe8d2411720329e0368d573056d68 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 26 Jun 2008 10:43:39 +0200 Subject: [PATCH] fixing pygdbdir bug --- INSTALL.txt | 10 ++++++---- pygdb.vim | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/INSTALL.txt b/INSTALL.txt index 631b1a5..cbcf4ec 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -6,10 +6,12 @@ " pygdb """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" - autocmd Filetype c,cpp :python import sys - autocmd Filetype c,cpp :python sys.path.append("") - autocmd Filetype c,cpp source /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 = "" + 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 by the corresponding path of pygdb. You may want to diff --git a/pygdb.vim b/pygdb.vim index b02495a..9486db4 100644 --- a/pygdb.vim +++ b/pygdb.vim @@ -35,7 +35,7 @@ clientcmd = "" execsign = None def gdbLaunch(): - global gdbBps, clientcmd + global gdbBps, clientcmd, pygdbdir clientcmd = vim.eval("input('Client commando: ', '%s')" % clientcmd) -- 2.39.5