how to copy codes in vi to clipboard

后端 未结 4 1053
终归单人心
终归单人心 2020-12-01 11:25

I know how to copy in VI. but I failed to copy it into other application. That means I failed copy those into clipboard. How can I do this?

P.S. In order to lean mor

4条回答
  •  青春惊慌失措
    2020-12-01 11:35

    The copy of vi is done within vi's own internal clipboard, as its descended from the unix command line where the windows style clipboard didnt exist. Later came the mouse pointer for command line which meant you could copy using that as a more like windows style, but if you want to copy from vi to windows clipboard, you need to use *yy and *p, not yy and p which are the internal clipboard within vi (which is also why yanking and pasting dont effect your windows clipboard)

提交回复
热议问题