首先安裝依賴:
sudo apt-get install build-essential
sudo apt-get build-dep vim-gnome
然後打vimgdb的補丁,具體見補丁包裡面的readme.rst
vimgdb install
**************
a) You need:
vim-7.3.tar.bz2 http://www.vim.org/sources.php
vimgdb-for-vim7.3 (this patch) https://github.com/larrupingpig/vimgdb-for-vim7.3
b) Untar all files, apply the patch and make Vim:
tar xjvf vim-7.3.tar.bz2 -C /tmp
tar xzvf vimgdb-for-vim7.3.tar.gz -C /tmp
cd /tmp
patch -p0 < vimgdb-for-vim7.3/vim73.patch
c) Install vimGdb runtime:
cp -rf /tmp/vimgdb-for-vim7.3/vimgdb_runtime/* ~/.vim
最後修改vim73/src/Makefile裡面的設置,
CONF_ARGS = --with-modified-by="Cedric Porter"
CONF_OPT_GUI = --enable-gui=gnome2
CONF_OPT_PYTHON = --enable-pythoninterp
CONF_OPT_CSCOPE = --enable-cscope
CONF_OPT_GDB = --enable-gdb
CONF_OPT_MULTIBYTE = --enable-multibyte
CONF_OPT_INPUT = --enable-xim
CONF_OPT_OUTPUT = --enable-fontset
CONF_OPT_FEAT = --with-features=huge
CONF_OPT_COMPBY = "--with-compiledby=Cedric Porter <[email protected]>"
編譯:
make && sudo make install
問題解決:
解決GVIM在Ubuntu 11.04中菜單顯示的問題
執行gvim時,gvim的菜單不能立刻顯示出來。並且報錯:
** (gvim:15150): WARNING **: Unable to register window with path ‘/com/canonical/menu/4200024′: Timeout was reached
解決方法是運行:
echo 'alias gvim="env UBUNTU_MENUPROXY=0 gvim"' >> ~/.bashrc source ~/.bashrc
--------------------------------------------------------------------------------
解決GVIM在UBUNTU 11.10中導致電腦很卡的問題
運行:
echo 'alias gvim="gvim -f"' >> ~/.bashrc source ~/.bashrc
--------------------------------------------------------------------------------
解決提示“PIXMAP”的問題
如果終端中提示:
(gvim:2353): Gtk-WARNING **: 無法在模塊路徑中找到主題引擎:“pixmap”,
解決方法是運行:
sudo apt-get install gtk2-engines-pixbuf