Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Linux Tutorials»How to Install Latest Vim Editor in Linux

    How to Install Latest Vim Editor in Linux

    By 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.

    Advertisement

    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

    Related Posts

    Understanding 2>&1 in Bash: A Beginner’s Guide

    How to Choose the Best Shebang (#!) for Your Shell Scripts

    Modulus Operator (%) in Bash

    Using Modulus Operator (%) in Bash

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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