How to Install Latest Vim 9.0 in Linux Systems

Vi has been around for a long, developed around 1976, it offered users traditional yet powerful features such as an effective editing interface, terminal control, and many more.

However, it lacked certain captivating features for example multiple screens, syntax highlighting, multiple undo functionality, and so on, that many Unix/Linux users were looking for in a complete text editor.

Therefore, Vim (Vi Improved) was developed to bring users a fully-featured, advanced, and complete text editor. Vim is a powerful, highly configurable, cross-platform, and popular text editor that runs on Unix-like systems such as Linux, OS X, Solaris, *BSD, and MS-Windows.

It is feature-rich and highly extensible as well, using several community-developed plugins, you can turn Vim into more than a simple text editor using vim tricks and tips.

Vim Features

A number of its notable features include:

  • A new Vim9 script to improve performance.
  • Persistent, multi-level undo tree.
  • Supports multiple screens.
  • Highly extensible using multiple plugins.
  • Offers users a powerful and reliable search tool.
  • Supports several programming languages and file formats.
  • Supports and integrates with numerous tools and many more.

After many years of gradual improvement, Vim now takes a significant step with a major Vim 9.0 release, which comes with some important improvements, several bug fixes, and new features as listed on the release announcement page.

[ You might also like: 8 Interesting Vim Editor Tips and Tricks for Linux Users ]

How To Install Vim 9.0 Editor in Linux Systems

In most modern Linux distributions, you can install Vim editor from the default repositories using the package manager, but the available version you will get is a little older.

$ sudo apt install vim     [On Debian, Ubuntu, and Mint]
$ sudo dnf install vim     [On RHEL, CentOS and Fedora]
$ sudo pacman -S vim       [On Arch Linux and Manjaro]
$ sudo zypper install vim  [On OpenSuse]

Although Vim 9.0 is out, it will take a good amount of time before it gets into official software repositories for the different Linux distributions.

Luckily, users of Ubuntu and Mint and its derivatives can use the unofficial and untrusted PPA to install it as shown.

$ sudo add-apt-repository ppa:jonathonf/vim
$ sudo apt update
$ sudo apt install vim

After installation, you can launch vim from the command line and view information about it as shown:

$ vim
Running Vim 9.0 in Ubuntu 20.04
Running Vim 9.0 in Ubuntu 20.04

To uninstall it and move back to the older version in the Ubuntu repository, run the following commands to purge the PPA:

$ sudo apt install ppa-purge
$ sudo ppa-purge ppa:jonathonf/vim

Arch users can install the latest Vim using the pacman command as shown:

# pacman -S vim

Compiling Vim 9.0 from Sources in Linux

For other Linux distributions, it will take some time to include it in official software repositories, but you can try the latest Vim 9.0 by compiling it from the source on your own as shown.

# git clone https://github.com/vim/vim.git
# cd vim/src
# make
# make test
# make install
# vim
Running Vim 9.0 in Rocky Linux 9
Running Vim 9.0 in Rocky Linux 9

There is also a Vim Appimage which is built daily and runs on many Linux systems.

Last but not least, if you have installed Vim, try it out and get back to us by using the feedback section below. Make any suggestions or share your experience with us and much more. We shall be delighted to get vital remarks from you.

Aaron Kili
Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

14 thoughts on “How to Install Latest Vim 9.0 in Linux Systems”

  1. The article says the given commands will install Vim 8.3, but the picture shows 8.0.3, and that was what was installed on my Mint 20.2 system.

    Please explain. How do I get 8.3?

    JL

    Reply
    • @JL,

      Actually, I didn’t change the picture in the article, but the given instructions will give you Vim 8.1 in Mint 20. Seems it will take some time to include 8.3 in the default repositories…

      Reply
  2. $ sudo apt install ncurses-dev
    $ wget https://github.com/vim/vim/archive/master.zip	
    $ unzip master.zip
    $ cd vim-master
    $ cd src/
    $ ./configure
    $ make
    $ sudo make install
    $ vim 
    

    the last line should be:

    $ ./vim
    
    Reply
  3. Hello, everyone, I install vim using this repository, this vim installs using this repository doesn’t support python. So better install from:

    $ sudo add-apt-repository ppa:pi-rho/dev
    $ sudo apt-get update
    
    Reply
  4. Abhishek Soni, try doing something like this:

    mkdir $HOME/vim-build ; cp $WHERE_EVER_YOU_DOWNLOADED_IT_TO/master.zip $HOME/vim-build
    mkdir $HOME/vim-bin
    ./configure –prefix=$HOME/vim-bin
    make
    make install
    cd $HOME/vim-bin/bin
    ./vim –version | head -n 1
    ## you should see the version as being 8.0
    ## if you do not see the version you compiled, check to see if your distro’s repo’s have the same version as what you are seeing, and if so, then it is possible that you are using the command provided by the distro’s repo’s and not the one you have installed. Hope this helps.

    Reply
    • @Abhishek,

      During compilation have you received any missing package or module error? how was your installation went? could you share the screen shot?

      Reply
    • @Abhishek

      You may try out the solution provided by @Carl J Hirner above:

      mkdir $HOME/vim-build ; cp $WHERE_EVER_YOU_DOWNLOADED_IT_TO/master.zip $HOME/vim-build
      mkdir $HOME/vim-bin
      ./configure –prefix=$HOME/vim-bin
      make
      make install
      cd $HOME/vim-bin/bin
      ./vim –version | head -n 1
      ## you should see the version as being 8.0
      ## if you do not see the version you compiled, check to see if your distro’s repo’s have the same version as what you are seeing, and if so, then it is possible that you are using the command provided by the distro’s repo’s and not the one you have installed. Hope this helps.

      Reply

Got something to say? Join the discussion.

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.