微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

debian 使用vim无法进行鼠标粘贴问题

问题:

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

解决方法

nano /etc/vim/vimrc.local

" This file loads the default vim options at the beginning and prevents
" that they are being loaded again later. All other options that will be set," are added,or overwrite the default settings. Add as many options as you
" whish at the end of this file.

" Load the defaults
source $VIMRUNTIME/defaults.vim

" Prevent the defaults from being loaded again later,if the user doesn‘t
" have a local vimrc (~/.vimrc)
let skip_defaults_vim = 1


" Set more options (overwrites settings from /usr/share/vim/vim80/defaults.vim)
" Add as many options as you whish

" Set the mouse mode to ‘r‘
if has(‘mouse‘)
  set mouse=r
endif

  

参考:

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

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐