2015-08-13 11:47:47
来 源
中存储网
Ubuntu
首先安装依赖: 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)

首先安装依赖:

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 <cedricporter@gmail.com>"

编译:

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

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。