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 ~~~~~~~~