Ⅰ. 插件描述
Emacs like gdb interface to cterm vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/vimgdb'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/vimgdb'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/vimgdb'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/vimgdb
Ⅳ. 文档说明
This script provides an emacs like GDB interface to vim. Woks in cygwin and unix terminals (no need for +clientserver).
Find the screen shots at "Vim Viki"
Start the program like this
vimgdb <gdb-params> <exe-file> <exe-params>
This will open vim with two windows. Type the gdb commands in bottom window. The top window will show the current file line and breakpoints highlighted.
You can also jump to top window and use the following keys
<F6> run
<F5> continue
<F7> step into
<F8> step over
<F9> toggle break point
Ctr-p Watch the variable under Cursor/Visual selection
watch the output/variables in bottom window.
Known Bugs:
Don't use the quit gdb command (that will hang the vim), instead quit the vim.
Credits:
This script is preliminarily based on Tomas Zellerin's gdbvim