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

Recording and playback of Vim commands

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

Share

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

The steps are as follows:

Q + (a.. z) register name

Do what you want to do.

Q end operation

Called as @ + register

Liezi is as follows:

When writing PHP programs, we often use to create functions.

Such as

Function add_in () {

}

Now let's record the command:

Qf f is the register name

Ifunction A () {o} >

Q end

How to use it:

Add_in@f

@ @ to repeat the last call

The register recorded by the command is the same thing as the register used for the yank and * * commands

Modify the contents of the register:

G to end of file

O generate a new line

"fp puts the contents of register f on this line, and what you see is the same as editing plain text.

If you get to the beginning of the line, you must not save.

"fy$ writes the correct result to register f

Dd * * draft

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