• Contact Us
  • copyright
  • About Us
  • Privacy Policy
  • Devops
  • Linux
Globedrill

vim command not found. Install Vim text editor on Fedora

Linux/17 May, 20/948/0
Linux

How to Install Vim text editor on Fedora server

 

bash: vim: command not found

Got the above error on my Fedora server while trying to edit a file. On Fedora servers, vim command is provided by vim package.

Do the below steps to install Vim Text Editor on Fedora server.

1. Log into Fedora server as ‘root’ user or as sudo user

2. Install vim text editor using dnf command

# dnf install vim

OR

# sudo dnf install vim

3. Enter ‘y’ and press enter, if dnf ask for confirmation

The below dependencies will be installed

 

# dnf install vim
Last metadata expiration check: 5:01:22 ago on Sun May 17 03:42:39 2020.
Dependencies resolved.
===================================================================================================
Package Architecture Version Repository Size
===================================================================================================
Installing:
vim-enhanced x86_64 2:8.2.694-1.fc31 updates 1.5 M
Installing dependencies:
gpm-libs x86_64 1.20.7-21.fc31 updates 20 k
vim-common x86_64 2:8.2.694-1.fc31 updates 6.5 M
vim-filesystem noarch 2:8.2.694-1.fc31 updates 22 k
which x86_64 2.21-15.fc31 fedora 42 k

Transaction Summary
===================================================================================================
Install 5 Packages

Total download size: 8.1 M
Installed size: 33 M
Is this ok [y/N]: y

 
 

How to download and install vim rpm

 
1. Log into Fedora server as ‘root’ user or as sudo user

2. Install the below dependencies

gpm-libs
vim-common
vim-filesystem
which

3. Download vim rpm file from fedoraproject.org website using wget command
 

wget https://download-ib01.fedoraproject.org/pub/fedora/linux/releases/31/Everything/x86_64/os/Packages/v/vim-enhanced-8.1.2102-1.fc31.x86_64.rpm

 
4. Install vim-enhanced using rpm command
 

rpm -ivh vim-enhanced-8.1.2102-1.fc31.x86_64.rpm

 
5. Run the following command to verify installation by checking vim version
 

# vim --version
VIM – Vi IMproved 8.2 (2019 Dec 12, compiled May 14 2020 00:00:00)

 

Leave a Reply Cancel reply

.

About Us

Globedrill.com is a website that publishes articles related to Linux and Devops. Globedrill was started on April 2016.

Contact Us

Email : globedrill.c@gmail.com

Globedrill

Copyright © 2016 Globedrill. All Rights Reserved. The content in this website is copyrighted to Globedrill.com and may not be republished either online or offline.

  • About Us
  • Privacy Policy
  • Contact Us
  • copyright