Copy and paste content from one file to another file in vi

后端 未结 18 1469
南方客
南方客 2020-12-04 05:02

I am working with two files, and I need to copy a few lines from one file and paste into another file. I know how to copy (yy) and paste (p) in the same file. But that doesn

18条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-04 05:12

    Another way could be to open the two files in two split buffers and use the following "snippet" after visual selection of the lines of interest.

    :vnoremap  :yWrp
    

提交回复
热议问题