Home  >  Q&A  >  body text

linux - Vim中无法复制内容到系统粘贴板

高洛峰高洛峰2712 days ago431

reply all(6)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 15:54:34

    Putty doesn’t support accessing the clipboard of a remote server, right? Are you using Windows? If it's Windows, there's nothing I can do about it. If it is Linux, use ssh -Y to turn on X11 forwarding.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:54:34

    Can’t you just use the mouse to select and copy?

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 15:54:34

    Just use xshell. This software is free for individuals.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 15:54:34

    Select directly with the mouse, then right-click to copy

    reply
    0
  • 黄舟

    黄舟2017-04-17 15:54:34

    The first option:
    Use xshell, select directly with the mouse
    The second option:
    Visual mode
    :'<'> w a.txt
    :sh
    sz a.txt
    exit
    The file is available locally

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 15:54:34

    Add the following code to the .vimrc file.vimrc 文件

    vnoremap <Leader>y "+y

    之后使用 <Leader>y rrreee

    Then use <Leader>y to copy the selected content to the cut version. 🎜

    reply
    0
  • Cancelreply