http://easwy.com/blog/archives/advanced-vim-skills-vim-gdb-vimgdb/
如果提示:You need to install a terminal library; for example ncurses.
还要安装:sudo apt-get install libncurses5-dev
./configure --enable-tclinterp --enable-cscope --enable-gdb --enable-multibyte --enable-xim prefix=/usr/local/share/vim
make
sudo make install