projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only load python in vimrc when opening c,cpp files
[pygdb.git]
/
pygdb.vim
diff --git
a/pygdb.vim
b/pygdb.vim
index d50d2400cbc1a6c1fb09bdb624cf764919ae398c..642b327f7c5d545bc5c1d431d395d88ce1967f50 100644
(file)
--- a/
pygdb.vim
+++ b/
pygdb.vim
@@
-1,4
+1,11
@@
-"shuber, 2008-06-08
+"pygdb.vim - pygtk interface to gdb in connection with (g)vim
+" Maintainer: Stefan Huber <shuber@cosy.sbg.ac.at>
+
+
+if !has('python')
+ echo "Error: Required vim compiled with +python"
+ finish
+endif
if ! exists("g:pygdb")
if ! exists("g:pygdb")
@@
-28,7
+35,7
@@
clientcmd = ""
execsign = None
def gdbLaunch():
execsign = None
def gdbLaunch():
- global gdb
term, mainctrlwnd, statuswnd, gdbBps, clientcmd, gdbthrea
d
+ global gdb
Bps, clientcm
d
clientcmd = vim.eval("input('Client commando: ', '%s')" % clientcmd).strip()
clientcmd = vim.eval("input('Client commando: ', '%s')" % clientcmd).strip()
@@
-44,7
+51,7
@@
def gdbLaunch():
conf.addBreak(bp["file"], bp["lineno"], bp["cond"])
conf.store(".pygdb.conf")
conf.addBreak(bp["file"], bp["lineno"], bp["cond"])
conf.store(".pygdb.conf")
- vim.command("!python %s/pygdb.py
%s &\n" % (pygdbdir
, clientcmd))
+ vim.command("!python %s/pygdb.py
--vim-servername %s %s &\n" % (pygdbdir, vim.eval("v:servername")
, clientcmd))
def gdbToggleBreakpoint(lineno=None, file=None):
def gdbToggleBreakpoint(lineno=None, file=None):
@@
-238,6
+245,7
@@
def gdbLoadConfig():
setExecutionLine(file, conf.currlineno)
else:
delExecutionLine()
setExecutionLine(file, conf.currlineno)
else:
delExecutionLine()
+
>>
highlight ExecutionLine term=bold ctermbg=DarkGreen ctermfg=Black guibg=LightGreen guifg=Black
>>
highlight ExecutionLine term=bold ctermbg=DarkGreen ctermfg=Black guibg=LightGreen guifg=Black