Spiderman
Spiderman

Reputation: 2087

Gvim installation on vim-7.4

I want vim-gtk to use vim 7.4 which I installed from source, but gvim is opening with 7.3 itself.

On A fresh linuxmint, after updating system, I removed already existing vim, than installed vim 7.4 from source and it is perfect installation, everything went fine, and than installed ,

sudo apt-get install vim-gtk

than when I enter gvim, gvim is 7.3 not already existing 7.4!!! and if I enter vim from terminal than its vim-7.4.

I will be thankful if anyone helped me to run gvim on vim 7.4

Upvotes: 1

Views: 9184

Answers (3)

user1801517
user1801517

Reputation:

just install vim-gnome and vim-gui and reboot.It worked for me.

Upvotes: 1

Dimko  Desu
Dimko Desu

Reputation: 435

Maybe this post will help you install gvim 7.4. There are few steps:

  • 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
    

I used this guide and get gvim 7.4.54.

Upvotes: 0

romainl
romainl

Reputation: 196886

Two things…

First, $ sudo apt-get install vim-gtk only uses your repositories (which are certainly frozen at 7.3.something), it doesn't care at all about what you installed manually.

Second, GVim is not a separate frontend that you add to an existing Vim: it is Vim, built with GUI support and either launched as gvim or as vim -g.

You could:

  • uninstall vim-gtk and re-compile Vim manually following these instructions (note the --enable-gui=gtk2)
  • or find an up-to-date ppa on LaunchPad.net, add it to your software sources and redo $ sudo apt-get install vim-gtk.

Upvotes: 3

Related Questions