阿尼樱奈奈
2023-08-14 18:51 Moderator
(但是我现在习惯用快捷键复制粘贴了)
Reply Like 0 View the author
(但是我现在习惯用快捷键复制粘贴了)
支持一下,之前都是手动在vim里设置
谢谢分享。
建议不要修改系统文件, /usr/share/vim/vim81/defaults.vim. 这个文件在升级时可能会被覆盖.
用户可以设置自己的vim配置. 创建这个文件, /home/<用户名>/.vimrc. 在这个文件里加入设置.
例如:
set mouse=r
set backspace=indent,eol,start
set ruler
set tabstop=4
set shiftwidth=4
Popular Ranking
ChangePopular Events
More
deepin 的vim 无法在终端用鼠标复制黏贴,修改文件 /usr/share/vim/vim81/defaults.vim
sudo vi /usr/share/vim/vim81/defaults.vim
找到 这个:
if has ('mouse')
set mouse=a
改为 set mouse -=a
保存退出后就能用鼠标复制黏贴了。