码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2019-02-18 10:25:27      阅读:622      评论:0      收藏:0      [点我收藏+]

标签:方法   问题:   over   通过   rc.local   vimrc   let   oca   overwrite   

问题:

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无法进行鼠标粘贴问题

标签:方法   问题:   over   通过   rc.local   vimrc   let   oca   overwrite   

原文地址:https://www.cnblogs.com/wswind/p/10394024.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!