In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the relevant knowledge of what vim refers to in Linux, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading what vim refers to in this Linux. Let's take a look at it.
In linux, vim is a command for editing a variety of text and programs; vim is a rich text editor, an extended version of the vi editor, which can be undone many times and can open multiple windows for editing at the same time, with rich code completion, compilation and error jump and other convenient programming functions.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is the command of vim in Linux
Vim is a rich text editor and an extended version of the vi editor. It can be used to edit all kinds of text, especially programs.
Compared with vi, it has many advantages, such as undoing multiple times, opening multiple windows at the same time, syntax highlighting, command line editing, online help, visual selection, etc.
Code completion, compilation, error jump and other convenient programming features are particularly rich. Simply put, vi is an old-fashioned word processor, but it has a full range of functions, but there is still room for improvement. Vim can be said to be a very useful tool for program developers.
Basically, vi/vim is divided into three modes: command mode (Command mode), input mode (Insert mode) and bottom line command mode (Last line mode). The functions of these three models are:
1. Command mode:
When you edit a file using Vim, it defaults to command mode. In this mode, you can use up, down, left, right or k, j, h, l commands to move the cursor, and copy, paste, replace, delete and other operations on the contents of the file.
2. Input mode:
You can write to a file in input mode, similar to entering content in a document in Windows. The way to enter the input mode is to enter I, a, o and other insert commands, and press the Esc key to return to the command mode after writing.
In input mode, you can use the following keys:
Character button and Shift combination, enter character ENTER, enter key, line feed BACK SPACE, backspace key, delete one character before the cursor DEL, delete key, delete one character direction key after the cursor, move the cursor HOME/END in the text, move the cursor to the beginning / end of the line Page Up/Page Down, page up / down page Insert, switch the cursor to input / replace mode, the cursor will change to vertical / underscore ESC, exit input mode Switch to command mode 3, edit mode:
If you want to save, find, or replace something, you need to enter edit mode. The way to enter the editing mode is to press the ":" key in the command mode, and a ":" symbol will appear at the lower left of the Vim window, at which time you can enter the relevant instructions for operation. The instruction automatically returns to command mode after execution.
This is the end of the article on "what does vim in Linux refer to?" Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what does vim refer to in Linux". If you want to learn more knowledge, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.