当前位置首页 > Debian知识

Debian使用vim鼠标右键无法粘贴问题解决

阅读次数:309 次  来源:admin  发布时间:

问题:

Debian中通过终端使用vim,无法通过鼠标粘贴。这是由于一项默认的鼠标配置导致。

解决方法:

vi /usr/share/vim/vim*/defaults.vim
vi ~/.vimrc

set mouse=""

mouse选型默认为a,相关说明如下:

The mouse can be enabled for different modes:

Normal mode

v Visual mode

i Insert mode

c Command-line mode

h all previous modes when editing a help file

a all previous mode

r for |hit-enter| and |more-prompt| prompt

Normally you would enable the mouse in all four modes with:

:set mouse=a

When the mouse is not enabled, the GUI will still use the mouse for

modeless selection. This doesn't move the text cursor.

参考:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864074

https://unix.stackexchange.com/questions/318824/vim-cutpaste-not-working-in-stretch-debian-9

http://www.cnblogs.com/centimeter/archive/2012/03/14/2395427.html

https://stackoverflow.com/questions/44389107/vimrc-not-accepting-mouse-a-command

http://www.cnblogs.com/centimeter/archive/2012/03/14/2395427.html

上一篇:zabbix系列(六)zabbix添加对ubuntu系统的监控
下一篇:IIS7.5配置FTPPassive模式