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

How does Ubuntu solve the problem that the vi editor becomes ABCD by pressing the top and bottom?

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

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how Ubuntu solves the problem that the vi editor becomes ABCD by pressing the top and bottom. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

When editing with Ubuntu's vi, sometimes you will encounter pressing the key above and below to change to ABCD. Introduce the solution to this situation.

1, as shown in the figure, when editing / etc/profile files with vi, press the next key above and below to become ABCD in the editing state.

2. At this point, press Esc to exit the editing state, and then enter: Q! Exit file editing.

3. The reason for this problem is that there is a problem with the original vim-common component, which can be solved by uninstalling the original vim-common component and installing a new vim.

4. Use the command after quitting file editing

Sudo apt-get remove vim-common

Uninstall the previous vim-common component.

5. Use the command after the uninstall is complete

Sudo apt-get install vim

Install vim.

6. After the installation is completed, open the profile file for editing and return to normal.

On "Ubuntu how to solve the vi editor by the top and bottom of the problem into ABCD" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

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