Debian 10操作系统中,使用apt安装的vim默认无法使用鼠标进行复制粘贴,很不方便。因此,今天介绍一下如何在Debian 10中恢复鼠标复制粘贴的功能。
本文作者为香菇肥牛,原文链接为 https://qing.su/article/debian-10-vim-mouse-copy-paste.html 转载需注明原文链接。谢谢!
解决方案
很简单,只需要改动一个文件就可以啦!编辑文件/etc/vim/vimrc.local, 添加下面几行
1 2 3 4 5 | source $VIMRUNTIME/defaults.vim let skip_defaults_vim = 1 if has('mouse') set mouse=r endif |
保存退出,此时再用vim打开一个文件,是不是已经可以复制粘贴了呢?
关于Debian 10中vim无法使用鼠标复制粘贴的问题,今天就介绍到这里。如果您有任何疑问,欢迎在这里留言哈。本文作者为香菇肥牛,原文链接为 https://qing.su/article/debian-10-vim-mouse-copy-paste.html 转载需注明原文链接。谢谢!
Link exchange is nothing else but it is just placing
the other person’s web site link on your page at appropriate place and other person will also do same in favor of you.
0mniartist asmr