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

What is the use of vi editor in Unix

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

Share

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

This article mainly shows you "what is the use of vi editor in Unix", the content is simple and clear, and I hope it can help you solve your doubts, so let me lead you to study and learn "what is the use of vi editor in Unix" this article.

Vi is a good editor in the Unix world, providing easy-to-use editing capabilities and more ergonomic than many editors with mouse support.

Vi basically adopts three modes of operation: insert mode, command mode and extension mode. According to the mode of operation, each button has different functions. At startup, vi is usually set to command mode. First of all, you need to know how to switch between these ways:

Switch from command mode to insert mode

There are many options at this point, of which A can be appended, I can be inserted, and O can create a new row under the current row.

Switch from insert mode to command mode

Press Esc to exit the insertion mode. You cannot terminate vi in insert mode, so be sure to get used to pressing the Esc key.

Switch from command mode to extended mode

You can activate the extension of vi by entering a colon (:). The extension or ex approach is similar to a stand-alone line-oriented editor that can be used for a variety of simple and complex tasks.

Switch from extended mode to command mode

After executing a command in extended mode, the editor automatically returns to command mode. If you decide not to execute any commands in extended mode, use the

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