简体   繁体   中英

Vim: yank to specific register in command-line mode

我通常可以在命令行模式下像这样猛拉:1,61y ,但是如何将它:1,61y "* (剪贴板)寄存器? :"*1,61y不起作用,并且:h c_y没有显示。

The register name comes after the range and yank portions:

:1,61y *

See :h :yank :

:[range]y[ank] [x]      Yank [range] lines [into register x].

如果你只是在命令模式下键入"*61yy ,你会将接下来的61行拉入*缓冲区。(注意命令前没有冒号)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM