My vim version is "huge" without GUI. Nevertheless, it is missing a lot of features like clipboard and python.

How can I get a more full-featured version? I read that there is a version vim-nox which has a lot features. Is it as simple as apt-get install vim-nox? If I do such an install does it overwrite my current version?

  • 5
    What is your operating system? Ubuntu? Debian? Linux Mint? And, anyway, you can always compile vim from source code with the features you want and then install/use it. However, assuming you don't want to compile it, it's important to know your OS so people can indicate to you the proper packages to be installed. – thiagowfx Jul 27 '16 at 4:56
  • You need $ sudo apt-get install vim-gtk. – romainl Jul 27 '16 at 7:37
  • @thiagowfx Sorry, debian jessie, thought everyone used that :-) – Tyler Durden Jul 27 '16 at 10:32
  • vim-nox as the name indicates does not have X-features enabled. Install one of vim-gnome or vim-gtk – Christian Brabandt Jul 27 '16 at 14:09
  • why not just download the source and compile it yourself, with all the features? – DoYouEvenCodeBro Jul 27 '16 at 14:09

If you want more features (and something more up to date than whats in the apt packages), you have to compile it yourself.

You say you are on Debian, and all these should work on that platform.

You will first want to clone the repo and remove any existing vim installations.

git clone https://github.com/vim/vim.git

sudo apt-get remove --purge vim*

Next, you want to install the headers that you will need for a basic vim installation. This might not be a comprehensive list, but it works for me. If you get errors in the compilation you should be able to find what packages you still need via a quick google search.

sudo apt-get install  libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev

Next, you want to install the headers for any features you are planning to use. Here, I am using python, ruby, and perl.

sudo apt-get install python-dev ruby-dev libperl-dev

Next, cd into your directory:

cd vim/src

Run the following commands:

make distclean

Now, you need to select what features you want. You can look at the makefile source for more information about how to do this. To see a list of available features, you can look at feature.h. I suggest setting the options like I do below instead of manually messing with comments in the makefile and feature.h. I feel it makes it easier to change your configuration. It's worth noting that features=huge should include both the clipboard and xterm=clipboard features.

Run this command:

./configure \
            --with-features=huge \
            --enable-rubyinterp \
            --enable-largefile \
            --disable-netbeans \
            --enable-pythoninterp \
            --with-python-config-dir=/usr/lib/python2.7/config \
            --enable-perlinterp \
        --enable-gui=auto \
            --enable-fail-if-missing \

Next, simply do a:

sudo make install

And you should be good to go, assuming there are no errors.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.