Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Tutorials»How to Install Latest Vim Editor in Linux

    How to Install Latest Vim Editor in Linux

    RahulBy RahulFebruary 24, 20212 Mins Read

    Vim (Vi Improved) is a highly configurable command line text editor for Unix like systems. It is originally cloned with VI POSIX standard editor with additions.

    Vim comes standard with most modern Linux distributions, but some of the minimal installation doesn’t include vim editor default. This tutorial will help you to install Vim text editor on your Linux system.

    Here are a some of the extended vim features:

    • Supports multi-level undo tree
    • Vim provides extensive plugin system
    • Provide support for hundreds of programming languages and file formats
    • Powerful search and replace options
    • Provides integration with multiple tools

    How To Install Vim in Linux

    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.

    • On Ubuntu Debian and LinuxMint
      sudo apt install vim  
      
    • For CentOS, RHEL and Fedora
      sudo dnf install vim  
      
    • On Arch Linux and Manjaro Systems
      sudo pacman -S vim  
      
    • OpenSuse Systems
      sudo zypper install vim  
      

    You can default package manager on other Linux distributions to install Vim. If the latest Vim version is not available, use below method to install Vim using source code.

    Compiling Vim Using Sources Code

    On some of the Linux distributions, the latest Vim may not be available under the official software repositories. Then, you can download the Vim source code from Github and compile it your Linux system.

    Follow the below steps to compile Vim from source code:

    1. First of all, install required packages on your system:
      sudo apt install git make ncurses-dev build-essential     #On Debian systems 
      sudo yum install git make ncurses-devel        #On Redhat systems 
      
    2. Download the latest Vim source code from Github repository.
      git clone https://github.com/vim/vim.git
      cd vim/src
      
    3. Configure the source code according to your system environment.
      ./configure 
      
    4. Compile and install Vim from Source code on your Linux system.
      sudo make 
      sudo make install 
      
    5. Finally, Open Vim text editor on your system.
      vim 
      
    6. Install latest Vim version

    That’s it. You have successfully installed latest Vim on your Linux system.

    Conclusion

    In this tutorial, you have learned to install latest Vim on Linux systems. Also includes instructions to compile Vim from source code and install.

    Next, you can like other articles like Search in Vim, Save file in Vim or exit from Vim editor.

    editor vim
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHead Command in Linux with Examples
    Next Article How To Install Signal App on Ubuntu 20.04

    Related Posts

    What is the /etc/aliases file

    2 Mins Read

    What is the /etc/nsswitch.conf file in Linux

    2 Mins Read

    How to Setup Squid Proxy Server on Ubuntu and Debian

    Updated:June 17, 20225 Mins Read

    How to Delete a Let’s Encrypt Certificate using Certbot

    Updated:June 3, 20222 Mins Read

    How to Install Latest Git on Ubuntu 22.04

    Updated:May 31, 20222 Mins Read

    How To Install LibreOffice on Ubuntu 22.04

    Updated:May 23, 20222 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.