Home  >  Article  >  Operation and Maintenance  >  Does linux come with vim?

Does linux come with vim?

青灯夜游
青灯夜游Original
2022-05-13 15:55:588771browse

There are many Linux distributions, not all of which come with vim. vi is the most basic text editor, and every Linux distribution comes with vi; vim is an enhanced version of vi, not every distribution comes with it, and needs to be installed manually; you can execute "yum -y install vim" command to perform a fully automatic installation.

Does linux come with vim?

The operating environment of this tutorial: CentOS 8 system, Dell G3 computer.

There are many Linux distributions, not all of which come with vim.

As a Linux beginner, you must be proficient in using at least one text editor in Linux. The more you know about your text editor's features, such as find, cut, and paste, the more helpful it will be for you.

There are more than one editors to choose from, such as vi, Vim, emacs, pico, nano, etc. Among them, vi and vim are the most basic.

  • vi is the most basic text editor, and every Linux distribution comes with vi.

  • vim can be considered an enhanced version of vi (actually a program development tool that can be used for text editing), but not every distribution comes with it and you need to install it yourself. .

How to install Vim?

If you enter "vim" in command line mode and the output is "Command not found", it means that Vim is not installed in this system.

In CentOS system, use the following command to install Vim:

yum install vim

It should be noted that when this command is run, manual confirmation is sometimes required [y/n], as shown in Figure 1:

Does linux come with vim?

When encountering this situation, just select “y”.

If you want to omit the process of manually entering "y" and want a fully automatic installation, you can use the following command:

yum -y install vim

After the installation is completed, on the command line When "Vim" is entered in and the screen shown below is displayed, Vim is deemed to have been successfully installed.

Does linux come with vim?

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of Does linux come with vim?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn