Loading

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

问题:

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

解决方法:

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

set mouse=""

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

The mouse can be enabled for different modes:
n Normal mode
v Visual mode
i Insert mode
c Command-line mode
h all previous modes when editing a help file
a all previous modes
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

posted @ 2019-02-18 10:08  wswind  阅读(1286)  评论(0编辑  收藏  举报