歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 12.04安裝gVim問題及解決

Ubuntu 12.04安裝gVim問題及解決

日期:2017/2/28 14:54:18   编辑:Linux教程

前兩天重裝了Ubuntu 12.04,在安裝gVim的時候發生了一些不爽的事情,主要還是輸入法沖突問題,具體如下:

1.啟動超慢

啟動慢可以用gvim -f解決,但治標不治本,後面一塊解決

2.占用一個終端

可以在後面加“&”解決,但也不解決根本問題

一個不錯的方法是參考網上一大哥的辦法,自己獲取vim源碼,打補丁,編譯安裝vim:http://www.linuxidc.com/Linux/2013-01/77314p2.htm

3.打補丁之後還是有問題,每次退出後會輸出一堆錯誤:


(gvim:28478): Gdk-WARNING **: Using Cairo rendering requires the drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

(gvim:28478): Gdk-CRITICAL **: IA__gdk_cairo_region: assertion `region != NULL' failed
(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還能用!

Copyright © Linux教程網 All Rights Reserved