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

Posted wswind

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于debian 使用vim无法进行鼠标粘贴问题的主要内容,如果未能解决你的问题,请参考以下文章

修复 Debian 中的 vim 奇怪行为 | Linux 中国

Debian 7解决VIM中文乱码

xshell无法在vim中复制黏贴

pycharm无法使用ctrl+c/v复制粘贴的问题

vi 提示visual模式,不能使用鼠标粘贴复制问题

vim粘贴代码问题