使用XShell登录后,用vim时,鼠标右键不能粘贴而是进入了visual模式。
这主要是因为VIM没有设置好导致的:
方法一:在普通模式下键入下面值:
:set mouse-=a
方法一每次打开vim时都需要设置一次。
方法二:编辑 ~/.vimrc 文件,加入下面代码:
if has('mouse')
set mouse-=a
endif
方法二,设置后以后都需要再设置。
:set mouse-=a
方法一每次打开vim时都需要设置一次。
if has('mouse')
set mouse-=a
endif