tags:

views:

1631

answers:

5

In emacs there is a handy way to launch the gdb and gui options for gdb, the C debugger.

Is there a similar option in gvim?

A: 

I don't think there is. I use different windows.

The only thing I can think of is

!gdb blah blah blah

but that may not be what you are looking for. It tends to be used to generate batch text that gets plugged back into the file you are editing.

Hope this helps.

bog
+3  A: 

Have a look at the Vim script search. I see at least 5 plugins that do what you want.

jkramer
+1  A: 

To complete jkramer's response, there is also pyclewn.

Luc Hermitte
+1  A: 

There's a project called cgdb which aims to provide this exact behavior. While it doesn't launch from vim the way emacs does, it provides vim like keybindings and behavior. Its features include a separate syntax highlighted source window which is kept up-to-date with the currently executing instruction.

pk
A: 

Perhaps Agide is what you are looking for: http://www.a-a-p.org/ It's some kind of an open framework for using vim and gdb like an IDE.

kongo2002