在Debian 10中为vim启用鼠标复制粘贴

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 转载需注明原文链接。谢谢!

29 thoughts on “在Debian 10中为vim启用鼠标复制粘贴”

  1. I have been browsing on-line greater than 3 hours today, but I by no means found any fascinating article like yours. It is lovely value enough for me. Personally, if all website owners and bloggers made just right content material as you probably did, the web will likely be a lot more helpful than ever before.| Darleen Lewie Niple

    Reply
  2. Thanks for sharing such a pleasant thought, piece of writing is fastidious, thats why i have read it fully Marisa Brewer Sverre

    Reply
  3. Way cool! Some very valid points! I appreciate you writing this article and the rest of the site is also really good. Hilda Hamilton Diane-Marie

    Reply
  4. I was wondering if you ever thought of changing the layout of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?| Cherry Tim Amby

    Reply
  5. Very nice post and right to the point. I am not sure if this is actually the best place to ask but do you folks have any ideea where to hire some professional writers? Thanks in advance Perrine Arel Anthia

    Reply
  6. Wow, superb blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is magnificent, let alone the content! Honor Elliott Krantz

    Reply

Leave a Comment