How to copy/paste text from vi to different applications

后端 未结 3 1292
轻奢々
轻奢々 2020-12-21 11:59

Is it possible to copy/paste text without using :vs? If I have two vi windows open, I can copy/paste text with a mouse. How can I do it with a keyboard?

I found two

3条回答
  •  庸人自扰
    2020-12-21 12:55

    You can copy/paste by using the + register (read more: Accessing the system clipboard)

    "+gyywill yank a line, and put it into the + register. You can paste in your other window with "+p in normal mode, or Ctrl+r + while in insert mode.

    If you don't wish to use split windows, there really is no other way to paste between windows apart from using the system clipboard.

提交回复
热议问题