vim command not found. Install Vim text editor on Fedora
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
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
4. Install vim-enhanced using rpm command
5. Run the following command to verify installation by checking vim version
VIM – Vi IMproved 8.2 (2019 Dec 12, compiled May 14 2020 00:00:00)