deepin开启远程桌面后鼠标右键不能复制

博客探讨了在使用Deepin开启远程桌面后,遇到鼠标右键无法复制的问题,同时在ssh连接下的vim编辑器中,ctrl+insert及鼠标右键复制粘贴功能失效。解决方案在于vim配置文件中启用鼠标功能,但设置'mouse=a'可能导致鼠标右键功能被屏蔽。文章详细解析了vim的鼠标模式,并提供了如何在不同模式下启用或禁用鼠标的方法,以恢复正常的复制粘贴操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

deepin开启远程桌面后鼠标右键不能复制

ssh xshell 连接在vim中无法用 ctrl+insert 或者鼠标右键 进行复制黏贴

vi ~/.vimrc 或者 vi /etc/vim/vimrc 添加:
set mouse=c


# vi的三种模式:命令模式,插入模式,可视模式.鼠标可以启动于各种模式中:
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.

所以配置文件中的set mouse=a启动了所有模式,这样就屏蔽了鼠标右健功能.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值