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 are the registers commonly used in Vim

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly introduces the relevant knowledge of "what are the registers commonly used in Vim". The editor shows you the operation process through an actual case. The method of operation is simple and fast, and it is practical. I hope this article "which registers are commonly used in Vim" can help you solve the problem.

Registers are temporary spaces that Vim uses to store text, similar to caching. When you use operations such as the command y copy or the d command to delete text, the text is temporarily saved in the register. Registers are the core of Vim copy and paste and copy and paste between system clipboards, so to fully understand Vim copy and paste, you must first understand Vim registers. Vim registers are divided into nine categories, but fortunately, there are only three commonly used registers:

Nameless register

"" to cache the contents of the last operation (copy y or delete d)

Digital register

"0x9, a total of ten digital registers, caches the contents of the last 10 operations, but it is important to note that" the 0 register caches the contents of the last copy operation, while the nine registers of "1x9" cache the contents of the last nine delete operations.

System clipboard register

"* and" +, these two registers are the clipboard of our system, and the contents of the cache can be text copied into other programs, which is a big difference from other registers, because other registers can only be copied and pasted within Vim applications, and these two registers can be copied and pasted across programs, so that You can easily copy content from other places (such as web pages) to the Vim editor.

The reg command can see what is currently cached in the registers above in Vim.

This is the end of the introduction of "what are the registers commonly used in Vim". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

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

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report