In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of what the three common modes of Vim are, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this article on what the three common modes of Vim are. Let's take a look.
Three common modes for installing VIM# yum install-y vim-enhanced install vimVim general mode
When vim uses to edit a file, it enters the general mode of the file by default.
You can move the cursor up and down, delete a character, delete a line, and copy or paste one or more lines.
Edit mode
In general mode:
I insert before the current character insert an at the beginning of the line of the cursor insert an insert after the current character insert An insert at the end of the line of the cursor o insert a new line on the next line of the current line O insert a new line command mode on the previous line of the current line
In normal mode, enter: or / enter command mode:
/ word looks for a string word behind the cursor and press n to continue the search. Word looks for a string word in front of the cursor and presses n to continue the search: N1 Magi n2s Word1Accord Word2Accord g finds word1 between N1 and N2 lines and replaces word2, without g replaces only the first word1:1,$s/word1/word2/g of each line, replaces all word1 in the document with word2, and without g replaces the first word1:w of each line to save text: Q exits vim:wl to force saving. Under root users, you can save even if the text is read-only: Q! Forced exit, all changes do not take effect: wq save and exit: set nu display line number: set nonu does not display line number on "what are the three common modes of Vim" this article is introduced here, thank you for reading! I believe you all have a certain understanding of the knowledge of "what are the three common modes of Vim". If you want to learn more, 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.