To follow the youcompleteme plug-in, vim7.3.584 is required, while my gvim version is 7.3.547
When upgrading, I refer to this tutorial:http://www.cnblogs.com/scue/p/3234102.html
sudo apt-get install -y hgsvn libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm -devlibxt-devpython-devruby-devmercurial cscope exauberant-ctagssudoapt-getremovevimvim-runtime gvim # this step can be omitted.
cd ~
hg clone https://code.google.com/p/vim/
cd vim
./configure --with-features=huge \
--enable-rubyinterp \
--enable-pythoninterp \
--enable-perlinterp \
--enable-gui=gtk2 --enable-cscope --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim73
sudo make install
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
sudo update-alternatives --set editor /usr/bin/vim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
sudo update-alternatives --set vi /usr/bin/vim
However, after upgrading, the version of gvim is still 7.3.547, while the version of vim is 7.4.265
I want to use the youcompleteme plug-in in gvim instead of vim.
The problem was solved by itself.Please click on the solution:
Install the needed dependencies:
$ sudo apt-get install ncurses-dev build-essential mercurial
Clone the sources of Vim 7.4:
$ hg clone https://vim.googlecode.com/hg/ vim
Build Vim from sources:
$ cd vim/src
$ make distclean
$ ./configure --with-features=huge --enable-pythoninterp --enable-rubyinterp
$ make
$ sudo make install
Adjust the PATH:
$ export PATH=/usr/local/bin:$PATH
Now gvim version is the same as vim version.
However, it is not clear whether the above commands are mainly to modify the configuration information of gvim so that vim can be called directly.
However, it is not clear whether the above commands are mainly to modify the configuration information of gvim so that vim can be called directly.
No. Your behavior is to recompile vim. In this way, gvim and vim are of course the same version.