完美解决vim在终端不能复制的问题

之前 用xshell,或者其余工具ssh到远程服务器,vim不能复制,搜索说是vim的 -xterm_clipboard没有开启.
今天发现,至少鼠标复制是不须要这个东东的!shell

在stackoverflow 上面看到有人说
Change mouse=a to mouse=r and that should fix your issue with that. If mouse=r doesn't give you all the copy past options change it to mouse=vvim

因而在vim 中输入 :set mouse=r 就好了 ,还不行的话 :set mouse=v. 由于我用 mouse=r ,鼠标就已经能够选中复制了,就没有日后面测试.

好像vim 默认的 set mouse=a .

ps:
友情提示将 set mouse=r 添加到vimrc中.服务器

pps:
使用 help mouse 能够看到这几个选项的意思 ,不过我没明白为何不能复制!ssh

n   Normal mode
    v   Visual mode
    i   Insert mode
    c   Command-line mode
    h   all previous modes when in a help file
    a   all previous modes
    r   for |hit-enter| prompt
相关文章
相关标签/搜索