In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
What are the knowledge points of this article "what are the basic operations of Vim in linux?" most people do not understand, so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what are the basic methods of operation of Vim in linux".
Switch from command mode to text input mode:
Key
Function
I
Enter text on the left side of the cursor
I
Enter text at the beginning of the current line
A
Enter text to the right of the cursor
A
Enter text at the end of the current line
O
Add a blank line to the next line of the current line, with the cursor at the beginning of the new line
O
Add a blank line on the previous line of the current line, with the cursor at the beginning of the new line
No matter which shortcut key is used to enter this mode, in insert mode, it is inserted in front of the cursor.
Text modifier key, available in command mode only
Key
Function
X
Delete the character specified by the cursor position
Dd
Delete the line where the cursor is located
U
Undo recent changes
U
Undo all changes made to the current line
R
Replace a character at the cursor position
R
Replace the character starting from the cursor position while changing the vim to the text input mode
.
Repeat the previous modification
Cursor movement key, control cursor movement in command mode.
Key
Function
H or [←]
Move the cursor one bit to the left
J or [↓]
Move the cursor down one line
K or [↑]
Move the cursor up one line
I or [→]
Move the cursor one bit to the right
$
Move the cursor to the end of the current line
W
Move the cursor one word to the right to the beginning of the next word
B
Move the cursor one word to the left to the beginning of the previous word
E
Move the cursor to the suffix
0
Move the cursor to the beginning of the current line
[enter]
Move the cursor to the beginning of the next line
[space]
Move the cursor one bit to the right
[backspace]
Move the cursor one bit to the left
Exit commands, except for the zz command, start with ":" and end the command line with [enter].
Key
Function
Wq
Save the file and exit the editor
W
Save the file without exiting the editor
Q
Exit the editor
Q!
Do not save the file, exit the editor
Zz
Save the file and exit the editor
Search command
Key
Function
/
Search forward for the specified string and press n to find the next one
?
Search backward for the specified string and press n to find the next one
The above is about the content of this article on "what are the basic operating methods of Vim in linux". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please 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.