How do I yank all matching lines into one buffer?

后端 未结 3 1169
情话喂你
情话喂你 2021-01-30 06:26

How do you yank all matching lines into a buffer?

Given a file like:

match 1
skip
skip
match 2
match 3
skip

I want to be able issue a c

3条回答
  •  臣服心动
    2021-01-30 07:15

    :help registers
    :help quote_alpha
    

    Specify a capital letter as the register name in order to append to it, like :yank A.

提交回复
热议问题