Ubuntu manually compiled gVim7.3 to fix conflicts with ibus during terminal startup

Source: Internet
Author: User
Tags mercurial
This bug has been plagued by upgrades of Ubuntu/ibus for a long time. The problem is that gvim-f is stuck when the terminal starts gvim. gvim-f can alleviate this problem, but it may still occur occasionally, besides, it is not convenient to add an & amp; at the end of each request. In fact, the new gvim version has fixed this bug, but the ubuntu installation package has not been updated, so let's compile it manually step0: uninstall gvimsudoapt-getremovevim-gnome (or vim-gtk, most of them are in these two versions. If not

This bug has been plagued by upgrades of Ubuntu/ibus for a long time. The problem is that gvim-f is stuck when the terminal starts gvim. gvim-f can alleviate this problem, but it may still occur occasionally, besides, it is not convenient to add one at the end of each request. In fact, the new gvim version has fixed this bug, but the ubuntu installation package has not been updated, so let's compile it manually.

Step 0: uninstall gvim
Sudo apt-get remove vim-gnome (or vim-gtk, most of them are in these two versions. If not, check them yourself)

Step 1: Install the compilation dependency
Sudo apt-get build-dep vim
I have more than 200 M. Install it slowly.

Step 2: Install mercurial
Sudo apt-get install mercurial
Vim version control tool, if this step is skipped

Step 3: Download The gvim source code
Hg clone https://vim.googlecode.com/hg/ gvim
Cd gvim

Step 4: Set the compilation version
Run the following command to get the latest version.
Hg pull
Hg update
Of course you can also choose your own, hg tags will display all versions, www.linuxidc.com and then hg update version,
For example, I am the latest hg update v-7-3-561.

Step 5: Set compilation options
My configuration is:
./Configure -- enable-multibyte \
-- Enable-fontset \
-- Enable-perlinterp \
-- Enable-pythoninterp \
-- Enable-cscope \
-- Enable-gui = auto \
-- With-features = big \
-- With-features = huge \
-- With-compiledby = I _NBFA
-- With-compiledby, as its name implies, has your name in version after compilation.
For other options, see./configure -- help.

Step 6: Compile and install
Make
Sudo make install

Okay. Enjoy gvim ~~~~~~~~

Related Article

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.