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
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-R 0
Will paste the contents of the register 0
in
the forward search command pattern.
首先是 :reg 可以查看當前所有的寄存器的狀態
把內容放到某一個寄存器 “1 yy
調出寄存器里的內容 “1 p
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com