Add VIMGDB support for VIM
1, download the latest Vim74 source package
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
2. Download vimgdb-for-vim7.4 Source code
wget Https://github.com/larrupingpig/vimgdb-for-vim7.4/archive/master.zip-O Vimgdb-for-vim74.zip
3. Unzip all files and apply patch files
Tar xjvf vim-7.4.tar.bz2-c/tmp unzip VIMGDB-FOR-VIM74.ZIP-D/tmp cd/tmp PATCH-P0 < Vimgdb-for-vim7.4-mast Er/vim74.patch CD vim74/src./configure--enable-gdb--prefix=/usr/local/vim74 --enable-multibyte --enable-fontset --enable-xim --enable-gui=auto --enable-pythoninterp=dynamic --enable-pythoninterp --enable-python3interp=dynamic --enable-rubyinterp=dynamic -- Enable-rubyinterp --enable-perlinterp --enable-cscope --enable-sniff --with-x --with-compiledby=erocpil --with-features=huge -- Enable-luainterp=dynamic --with-python-config-dir=/usr/lib/python2.7 /config make Sudo make install
4. Install vimgdb running file:
Copy the files in the extracted Vimgdb_runtime folder to your $vimruntime directory, usually the $home/.vim directory. If you are not sure that the specific directory of your machine can be executed in the open vim
: Set Runtimepath?
To see the specific directories in your own machine environment.
cp-rf/tmp/vimgdb-for-vim7. 4-master/vimgdb_runtime/* ~/.vim
Switch to the CD ~/.vim/doc/directory and execute the ": helptags." Command to create a help document in Vim.
CD ~/.vim/doc/
Vim
: Helptags.
Later you want to see instructions about VIMGDB you can use the ": Help Vimgdb" command in vim for assistance.
Specific use methods and optional configuration, in the official Help document has been detailed introduction, please do not know the classmate self-check, here is not redundant.