Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux does not bring its own vim

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "linux does not bring its own vim". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Linux has a variety of distributions, not all of which come with vim. Vi is the most basic text editor. Every Linux distribution comes with vi;, while vim is an enhanced version of vi. Not every distribution comes with it and needs to be installed manually; it can be installed automatically by executing the "yum-y install vim" command.

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

Linux has a variety of distributions, not all of which come with vim.

As a beginner in Linux, you must be proficient in the use of at least one text editor in Linux. The more you learn about the functions of a text editor, such as find, cut, and paste, the more helpful it will be for you.

There is more than one editor available, such as vi, Vim, emacs, pico, nano, and so on. 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 thought of as 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 needs to be installed.

How to install Vim?

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

On CentOS systems, use the following command to install Vim:

Yum install vim

It is important to note that when this command runs, it is sometimes necessary to manually confirm [yzone], as shown in figure 1:

In this case, select "y".

If you want to omit the process of manually typing "y" and want to install automatically, you can use the following command:

Yum-y install vim

After the installation is complete, when you enter "Vim" on the command line to display the screen shown in the following figure, the Vim installation is considered successful.

This is the end of the introduction of "linux does not bring its own vim". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report