How to install VIM enhanced on Fedora Linux 32/33

My Fedora Linux workstation shipped with vi commands. The default vi provides no syntax-highlighting for opened files, by default on Fedora Linux 32/33. It works like the original vi editor. How do I install an enhanced version of vim that provides syntax-highlighting on Fedora Linux 29/30/32/33?

Introduction – By default, Fedora Linux ships with vim-minimal package that provides vi command. There is no syntax-highlighting for vi commands. Hence, you must install an enhanced version of VIM. This page shows how to Install VIM (Visual editor IMproved) on Fedora Linux 32/33.

How to search for an enhanced version of VIM on Fedora

Run the following dnf command and grep command/egrep command:
dnf search vim
dnf search vim | egrep -i 'enhanced|enhancements'

Sample outputs:

Last metadata expiration check: 0:22:45 ago on Friday 18 January 2019 11:22:12 PM IST.
vim-enhanced.x86_64 : A version of the VIM editor which includes recent

Get information about vim-enhanced package in Fedora Linux, run:
dnf info vim-enhanced
Available Packages:

Available Packages
Name         : vim-enhanced
Epoch        : 2
Version      : 8.2.1770
Release      : 1.fc32
Architecture : x86_64
Size         : 1.6 M
Source       : vim-8.2.1770-1.fc32.src.rpm
Repository   : updates
Summary      : A version of the VIM editor which includes recent enhancements
URL          :
License      : Vim and MIT
Description  : VIM (VIsual editor iMproved) is an updated and improved version of the
             : vi editor.  Vi was the first real screen-based editor for UNIX, and is
             : still very popular.  VIM improves on vi by adding new features:
             : multiple windows, multi-level undo, block highlighting and more.  The
             : vim-enhanced package contains a version of VIM with extra, recently
             : introduced features like Python and Perl interpreters.
             : Install the vim-enhanced package if you'd like to use a version of the
             : VIM editor which includes recently added enhancements like
             : interpreters for the Python and Perl scripting languages.  You'll also
             : need to install the vim-common package.

How to install VIM enhanced on Fedora Linux 32/33

The procedure to install vim-enhanced is as follows.

Step 1. Update Fedora Linux software

Execute the following command to update package database:
sudo dnf update

Step 2. Install vim-enhanced in Fedora

Type the following dnf command:
sudo dnf install vim-enhanced

Installing VIM enhanced package on my Fedora Linux workstations using dnf

Step 3. Verify VIM installation in Fedora Linux

Next, verify that vim working:

Step 4. Create bash shell aliase

Add the following alias to your ~/.bashrc file, enter:
vim ~/.bashrc
Append the following code:
alias vi='vim'
Save and close the file in vim. Load new aliases using source command:
source ~/.bashrc

Related: How to create a permanent Bash alias on Linux/Unix


Now you can remove vim-minimal and use the full version of vim. For more information see the vim text editor web site here.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 6 comments so far... add one ↓

CategoryList of Unix and Linux commands
Disk space analyzersdf β€’ duf β€’ ncdu β€’ pydf
File Managementcat β€’ cp β€’ mkdir β€’ tree
FirewallAlpine Awall β€’ CentOS 8 β€’ OpenSUSE β€’ RHEL 8 β€’ Ubuntu 16.04 β€’ Ubuntu 18.04 β€’ Ubuntu 20.04
Modern utilitiesbat β€’ exa
Network UtilitiesNetHogs β€’ dig β€’ host β€’ ip β€’ nmap
OpenVPNCentOS 7 β€’ CentOS 8 β€’ Debian 10 β€’ Debian 8/9 β€’ Ubuntu 18.04 β€’ Ubuntu 20.04
Package Managerapk β€’ apt
Processes Managementbg β€’ chroot β€’ cron β€’ disown β€’ fg β€’ glances β€’ gtop β€’ jobs β€’ killall β€’ kill β€’ pidof β€’ pstree β€’ pwdx β€’ time β€’ vtop
Searchingag β€’ grep β€’ whereis β€’ which
User Informationgroups β€’ id β€’ lastcomm β€’ last β€’ lid/libuser-lid β€’ logname β€’ members β€’ users β€’ whoami β€’ who β€’ w
WireGuard VPNAlpine β€’ CentOS 8 β€’ Debian 10 β€’ Firewall β€’ Ubuntu 20.04
6 comments… add one
  • Swap Dec 12, 2019 @ 18:40

    The official fedora wiki recommend vim package:
    sudo dnf install vim
    It actually calls and installs vim-enhanced.

  • No-data Oct 4, 2020 @ 17:55

    Maybe you have an typo on this command:
    $dnf search vim | grep enhanced

  • Klaas Dec 11, 2020 @ 10:38

    With Fedora Workstation 33 KDE Plasma version I get:
    [tester@localhost ~]$ vim
    No vim found, using vi, press ENTER to continue

    • 🐧 Vivek Gite Dec 12, 2020 @ 18:44

      Did you install vim package I instructed here?

  • Tom Jan 30, 2021 @ 18:58

    Thanks . You just helped me along my python automation DevOps path.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum