Home > Database > Mysql Tutorial > vim(一): 小技巧

vim(一): 小技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:29:53
Original
1434 people have browsed it

1) 如何yank字符然后再查找 ( / Ctrl - R 0 ) The most recently yanked text will be stored in the 0 and registers (if no register was explicitly specified e.g. by xy ). Then you can paste the text of any that register in the last line (eith

1) 如何yank字符然后再查找 (/Ctrl-0

The most recently yanked text will be stored in the 0 and " registers (if no register was explicitly specified e.g. by "xy).

Then you can paste the text of any that register in the last line (either in search mode / or in last line command mode : ) with Ctrl-RX, where X is the register you want to paste.

For example:

/Ctrl-0

Will paste the contents of the register 0 in the forward search command pattern.

2) 如何使用不同的寄存器(注意寄存器的调用是以 [“] 开始的)

首先是 :reg 可以查看当前所有的寄存器的状态

把内容放到某一个寄存器   “1 yy

调出寄存器里的内容  “1 p

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Vim problem under Ubuntu
From 1970-01-01 08:00:00
0
0
0
vim configuration
From 1970-01-01 08:00:00
0
0
0
vim file refresh
From 1970-01-01 08:00:00
0
0
0
mac vim youcomplete prompt - mac vim
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template