Blog

03/06/2019

How to install VIM enhanced on Fedora Linux 29



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

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

How to search for an enhanced version of VIM on Fedora

Run the following dnf command and grep command:
dnf search vim
dnf search vim | grep 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

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:

Name         : vim-enhanced
Epoch        : 2
Version      : 8.1.575
Release      : 1.fc29
Arch         : x86_64
Size         : 1.3 M
Source       : vim-8.1.575-1.fc29.src.rpm
Repo         : updates
Summary      : A version of the VIM editor which includes recent enhancements
URL          : http://www.vim.org/
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.

Name : vim-enhanced Epoch : 2 Version : 8.1.575 Release : 1.fc29 Arch : x86_64 Size : 1.3 M Source : vim-8.1.575-1.fc29.src.rpm Repo : updates Summary : A version of the VIM editor which includes recent enhancements URL : http://www.vim.org/ 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 29

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:
vim
vim script.sh

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

Conclusion

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

(adsbygoogle = window.adsbygoogle || []).push({});

Posted by: SXI ADMIN

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

20/08/2019

Start your Bitcoin Exchange with our Software

Start your Bitcoin Exchange with our Software Setup your white label bitcoin exchange right away. Or create your own cryptocurrency using...
14/08/2019

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...
14/08/2019

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....