July 6, 2020
How to install vim on CentOS 8 using dnf/yum

How to install vim on CentOS 8 using dnf/yum

I really like the VIM word processor, and it’s not on my centOS 8 box. How do I install vim on a Linux CentOS 8 cloud server?

This page explains how to install the VIM word processor on a Linux server or CentOS 8 desktop using the dnf/yum command.

 

How to install the vim on CentOS 8

VIM stands for Vi IMproved and is often called the programmer’s word processor. VIM is popular with system administrators, DevOps engineers, Linux enthusiasts and users. As standard, the minimum version of CentOS 8 comes with a simple vi-version for storing small cloud images. However, we can find and install the VIM as follows.

Step 1: Searching for Vim packs

Open the terminal application and enter the following command. We can search the vim package using keyword metadata. The syntax is as follows:
sudo dnf search vim
This is what I get on my box:

Check the expiry date of the last metadata: 0:15:25 return, Wednesday 13. May 2020. 02:22:40 IST.
======================================================================================== Имя и краткое изложение совпадают : vim ======================================================================================================: Git commit browser in Vim
vim-filesystem.noarch : VIM brand of the
geany-plugins-vimode.x86_64 file system: Vim mode plugin for Geany
vim-minimal.x86_64 : Minimum version of VIM
vim-minimal.x86_64 : Minimum version of VIM
vim-devicons.noarch : Adds file type icons to the fluxbox-vim-syntax.noarch plugins of Vim
: Syntax scripts for vim
vim-jellybeans.noarch : A dark and colorful color scheme for the Vim
vim-airline.noarch : Low and medium status/table for vim that is light as air
vim-common.x86_64 : Shared files required for each version of the VIM
vim-X11.x86_64 VIM version of the X Window System vi-editor – GVim
vim-enced.x86_64 : A version of the VIM editor that contains the latest improvements of
awesome-vim-colorschemes.noarch : Сборник цветовых схем для Neo/vim, объединённых для быстрого использования================================================================================================================================================================================================================: vim ==========================================================================================================================================================================================.noarch: Prototype
vim-gitgutter.noarch : Shows the difference in drop and scene/contrast in relation to the hook and partial hook
vim-nerdtree-git-plugin.noarch : Плагин NERDTree со статусом git
=========================================================== Краткий обзор: vim ================
kakoune.x86_64 : The code editor is largely inspired by Wim.

Last metadata expiration check: 0:15:25 ago on Wednesday 13 May 2020 02:22:40 PM IST.
================================== Name & Summary Matched: vim ===================================
vim-gv.noarch : Git commit browser in Vim
vim-filesystem.noarch : VIM filesystem layout
geany-plugins-vimode.x86_64 : Vim-mode plugin for Geany
vim-minimal.x86_64 : A minimal version of the VIM editor
vim-minimal.x86_64 : A minimal version of the VIM editor
vim-devicons.noarch : Adds file type icons to Vim plugins
fluxbox-vim-syntax.noarch : Fluxbox syntax scripts for vim
vim-jellybeans.noarch : A colorful, dark color scheme for Vim
vim-airline.noarch : Lean & mean status/tabline for vim that’s light as air
vim-common.x86_64 : The common files needed by any version of the VIM editor
vim-X11.x86_64 : The VIM version of the vi editor for the X Window System – GVim
vim-enhanced.x86_64 : A version of the VIM editor which includes recent enhancements
awesome-vim-colorschemes.noarch : Collection of color schemes for Neo/vim, merged for quick use
======================================= Name Matched: vim ========================================
vim-pathogen.noarch : Manage your runtimepath
vim-gitgutter.noarch : Shows a git diff in the gutter and stages/undoes hunks and partial hunks
vim-nerdtree-git-plugin.noarch : Plugin of NERDTree showing git status
====================================== Summary Matched: vim ======================================
kakoune.x86_64 : Code editor heavily inspired by Vim

Another useful command is the following:
sudo dnf list vim*

Step 2: Obtaining information about CentOS 8

We’ve installed a Wimm-Minimal. All we need is Vim-amplified. Let’s find out the difference between the two by entering the following simple commands:
sudo dnf info vim-minimal
sudo dnf info vim-enced
outputs :

Check the expiration date of the last metadata: 0:18:53 back, Wednesday 13. May 2020. 02:22:40 IST.
Packages available
Name: vim-enced
Ages : 2
Version : 8.0.1763 Edition
: 13.el8 Architecture
: x86_64 Dimensions
: 1.4 M
Source: vim-8.0.1763-13.el8.src.rpm
deposit: AppStream
Summary : A version of the VIM editor, including the latest improvements to URL
: http://www.vim.org/
License : Vim and MIT
Description : VIM (VIsual editor from iMproved) is an updated and improved version of the
editor: vi. Vi was the first real screen editor for UNIX, and it is still very popular
: to this day. VIM improves vi by adding new features:
: multiple windows, multilevel undo, block marking and more. The
: vim-enced package contains a VIM version with extra functions recently introduced in
, such as Python and Perl translators.

Install the vim amplifier package if you want to use the
VIM Editor version, with recently added improvements such as
: interpreter for Python and Perl script languages. You also need
: install the vim common package.

Last metadata expiration check: 0:18:53 ago on Wednesday 13 May 2020 02:22:40 PM IST.
Available Packages
Name : vim-enhanced
Epoch : 2
Version : 8.0.1763
Release : 13.el8
Architecture : x86_64
Size : 1.4 M
Source : vim-8.0.1763-13.el8.src.rpm
Repository : AppStream
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.

Step 3: Installation of vim engineering on a CentOS Linux 8server

Execute the following dnf/yum command:
sudo dnf installation vim-enced
## or ##
sudo yum installation vim-enced
How to install vim on CentOS 8 using dnf/yum desktop computer.

Step 4: Start with vim

The syntax is: filename
vim
vim /path/to/file
vim [options] my-code.sh
We can create a permanent bash alias:
alias vi=’vim’
Add the bash shell alias to the file ~/.bashrc or ~/.bash_aliases : Alias
echo vi=’vim’ >> ~/.bashrc
Reboot:
-sources ~/.bashrc

Wim Tutor

Are you new to VIM? Would you like to get to know the Vim teams? You don’t have to look on the internet or in a book. VIM goes with Vim’s guardian. Just type the following command:
vimtutor
The optional [Language] argument is a two-letter language name, such as it or es. To list the installed languages, execute the following command:
ls -l /usr/share/vim/vim*/tutor/
List of examples :

README.el.cp737.txt tutor.el tutor.hu.utf-8 tutor.no.utf-8 tutor.svREADME.el.txt tutor.el.cp737 tutor.it.plutor.sv.utf-8README.txt tutor.el.utf-8 tutor.it.utf-8 tutor.pl.cp1250 tutor.tr.iso9 tutor.eo.ja.euc tutor.pl.utf-8 tutor.tr.utf-8 tutor.eo.utf-8 tutor.ja.sshis tutor.pt tutor.uk.utf-8 tutor.bar.utf-8 tutor.es tutor.ja.utf-8 tutor.pt.utf-8 tutor.bg.utf-8 tutor.es.utf-8 tutor.ko.euc tutor.ru tutor.ru.vimtutor.cautor.fr tutor.ko.utf-8 tutor.ru.cp1251 tutor.vi.utf-8 tutor.ca.utf-8 tutor.fr.utf-8 tutor.lv tutor.lv tutor.pt.utf-8 tutor.pt.utf-8 tutor.utf-8 tutor.euc tutor.ru tutor.utf-8 vimtutor.cautor.utf-8 tutor.fr.utf-8 tutor.lv tutor.ru.utf-8 tutor.zh.big5tutor.cs tutor.hr tutor.nb tutor.skutor.zh_cn.utf-8tutor.cs.cp1250 tutor.hr.cp1250 tutor.hr.cp1250 tutor.nb.utf-8 tutor.sk.cp1250 tutor.zh.euctutor.cs.utf-8 tutor.hr.utf-8 tutor.nl tutor.utf-8 tutor.zh_tw.utf-8 tutor.zh_tw.utf-8.de tutor.hu tutor.nl.utf-8 tutor.sr.cp1250 tutor.zh.utf-8 tutor.de.utf-8 tutor.hu.cp1250 tutor.no tutor.sr.utf-8.

README.el.cp737.txt tutor.el tutor.hu.utf-8 tutor.no.utf-8 tutor.sv
README.el.txt tutor.el.cp737 tutor.it tutor.pl tutor.sv.utf-8
README.txt tutor.el.utf-8 tutor.it.utf-8 tutor.pl.cp1250 tutor.tr.iso9
tutor tutor.eo tutor.ja.euc tutor.pl.utf-8 tutor.tr.utf-8
tutor.bar tutor.eo.utf-8 tutor.ja.sjis tutor.pt tutor.uk.utf-8
tutor.bar.utf-8 tutor.es tutor.ja.utf-8 tutor.pt.utf-8 tutor.utf-8
tutor.bg.utf-8 tutor.es.utf-8 tutor.ko.euc tutor.ru tutor.vim
tutor.ca tutor.fr tutor.ko.utf-8 tutor.ru.cp1251 tutor.vi.utf-8
tutor.ca.utf-8 tutor.fr.utf-8 tutor.lv tutor.ru.utf-8 tutor.zh.big5
tutor.cs tutor.hr tutor.nb tutor.sk tutor.zh_cn.utf-8
tutor.cs.cp1250 tutor.hr.cp1250 tutor.nb.utf-8 tutor.sk.cp1250 tutor.zh.euc
tutor.cs.utf-8 tutor.hr.utf-8 tutor.nl tutor.sk.utf-8 tutor.zh_tw.utf-8
tutor.de tutor.hu tutor.nl.utf-8 tutor.sr.cp1250 tutor.zh.utf-8
tutor.de.utf-8 tutor.hu.cp1250 tutor.no tutor.sr.utf-8

So I can print:
vimtutor es
vimtutor lv
vimtutor tr
vimtutor it

Conclusion

In this lesson we learned how to install VIM (VIsual-Editor iMproved) – an updated and improved version of the vi-Editor under CentOS 8. Vi was the first real screen editor for UNIX and is still very popular today. The VIM improves the performance of vi by adding new features such as multi-window control, multi-level fades, block lighting and more. The vim-minimal package contains a minimal version of VIM, which is installed in /bin/vi and is for use with the root partition only. So we need to install vim-enced ciphers to get a complete editor. The official VIM page can be found here.

RECOMMENDATIONS

Published: Vivek gears

The author is the creator of nixCraft and an experienced system administrator, DevOps engineer and Linux/Unix shell script trainer. Receive the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly by email.install vim in centos 8,dnf centos 8,centos 8 apt-get,centos 8 how to install packages,centos 8 compatibility libraries,yum install vim gtk,rhel7 install vim,yumex – centos 8

About Author

admin

https://server-land.com