ubuntu 12.04安装gvim问题及解决

来源:互联网 发布:斯皮尔伯格 人工智能 编辑:程序博客网 时间:2024/04/30 05:29

前两天重装了ubuntu,在装gvim的时候发生了一些不爽的事情,主要还是输入法冲突问题,具体如下:


1.启动超慢

启动慢可以用gvim -f解决,但治标不治本,后面一块解决


2.占用一个终端

可以在后面加“&”解决,但也不解决根本问题


一个不错的方法是参考网上一大哥的办法,自己获取vim源码,打补丁编译安装vim:

http://blog.csdn.net/jeakon/article/details/8488997


3.打补丁之后还是有问题,每次退出后会输出一堆错误:

  1. (gvim:28478): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to  
  2. have a specified colormap. All windows have a colormap,  
  3. however, pixmaps only have colormap by default if they  
  4. were created with a non-NULL window argument. Otherwise  
  5. a colormap must be set on them with gdk_drawable_set_colormap   
  6. (gvim:28478): Gdk-CRITICAL **: IA__gdk_cairo_region: assertion `region != NULL' failed  
  7. (gvim:28478): Gdk-CRITICAL **: IA__gdk_cairo_region: assertion `region != NULL' failed 


原因:输入法冲突  (之前已经卸载ibus装了fcitx,还是不行)

解决:由于fcitx-frontend-gtk2和gvim冲突造成的错误可以通过sudo apt-get remove fcitx-frontend-gtk2解决。

之后问题解决,而且fcitx还能用!


原创粉丝点击