问题:
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
原文地址:https://www.cnblogs.com/wswind/p/10394024.html
时间: 2024-10-11 07:46:18