Ubuntu12.04 install gVim

Source: Internet
Author: User
Ubuntu was reinstalled two days ago. some unpleasant things occurred while installing gVim, mainly due to input method conflicts. Details are as follows: 1. you can use gvim-f to solve the problem of slow startup. if you use a terminal, you can add & ldquo; & amp; & rdquo; To solve the problem, but it does not solve the fundamental problem. A good method is to refer to the solution of the old brother on the Internet, obtain the vim source code, install patches, and compile and install vim: http: // www.

Two days ago, Ubuntu 12.04 was reinstalled. some unpleasant things occurred when gVim was installed, mainly due to input method conflicts. The details are as follows:

1. startup is too slow

You can use gvim-f to solve the problem of slow startup, but the symptoms are not the root cause.

2. Occupying a terminal

You can add "&" to solve the problem, but it does not solve the fundamental problem.

A good method is to refer to the network on the eldest brother of the way, their own obtain vim source code, patching, compilation and installation vim: http://www.linuxidc.com/Linux/2013-01/77314p2.htm

3. There is still a problem after patching. After each exit, a bunch of errors will be output:


(Gvim: 28478): Gdk-WARNING **: Using Cairo rendering requires the drawable argument
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'

Cause: Input Method conflict (I have uninstalled ibus and installed fcitx, but I still cannot)


Resolution: errors caused by fcitx-frontend-gtk2 conflicts with gvim can be addressed through the sudo apt-get remove fcitx-frontend-gtk2.

Then the problem is solved, and fcitx can be used!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.