VI Editor : Yank the entire file to clipboard (specific to OS X)

前端 未结 3 1700
忘了有多久
忘了有多久 2020-12-31 05:40

Is there any way to copy all lines from a file to clipboard in VI editor. I have tried *yG, +yG, \"+yG and :%y+ from prev

3条回答
  •  [愿得一人]
    2020-12-31 06:20

    vim --version | grep clipboard, if you see "-clipboard", you won't do that . Your vim doesn't support it. You need recompile the source code。

    Compile

    $./configure \ --enable-gui=auto --with-features=huge --with-x
    $ make && sudo make install
    

提交回复
热议问题