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

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

在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=v

于是在vim 中输入 :set mouse=r 就行了 ,还不行的话 :set mouse=v. 因为我用 mouse=r ,鼠标就已经可以选中复制了,就没有往后面测试.

好像vim 默认的 set mouse=a . 

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

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

            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
原文地址:https://www.cnblogs.com/cheerupforyou/p/6958695.html