[已解决]终端打开文件中无法复制文本,无论快捷键or鼠标右键
Tofloor
poster avatar
jelly
deepin
2020-11-24 00:39
Author

普通社区版-1003-最新版本。
在终端 通过vi 或 vim 命令,打开的文件中 无法复制文本,

无论使用快捷键 还是鼠标右键,无论输入模式还是命令模式;


Reply Favorite View the author
All Replies
Ziggy
deepin
2020-11-24 02:45
#1

ctrl+alt+C也不行了?

Reply View the author
jelly
deepin
2020-11-24 03:05
#2
Ziggy

ctrl+alt+C也不行了?

不行,只要不是在终端中,打开的文件,都可以正常复制,比如 cat test.sh 在终端输出的内容,就可以复制

Reply View the author
Ziggy
deepin
2020-11-24 04:03
#3
jelly

不行,只要不是在终端中,打开的文件,都可以正常复制,比如 cat test.sh 在终端输出的内容,就可以复制

这边倒是没有复现

Reply View the author
忘记、过去
deepin
2020-11-24 05:37
#4

ctrl+shift+c复制不行吗......?vim没怎么用过......

Reply View the author
jelly
deepin
2020-11-24 06:56
#5
忘记、过去

ctrl+shift+c复制不行吗......?vim没怎么用过......

不行

Reply View the author
guaguale
deepin
2020-11-24 17:00
#6

其他终端可以吗?

Reply View the author
sunlintong
deepin
2020-11-24 17:07
#7

这是可视模式,当然不行了。

echo "set mouse-=a" >> ~/.vimrc

就好了

Reply View the author
dxy2020
deepin
2020-11-24 17:16
#8
guaguale

其他终端可以吗?

我们系统的vim配置默认不允许复制,这是vim的设置,按楼下说的在命令行模式输入:set mouse-=a就有复制选项了

其他终端都是一样的

Reply View the author
jelly
deepin
2020-11-25 23:03
#9
sunlintong

这是可视模式,当然不行了。

echo "set mouse-=a" >> ~/.vimrc

就好了

谢谢,设置后,现在好了。
@jingle 为啥系统中,不默认加上这个配置?

Reply View the author
jelly
deepin
2020-11-25 23:22
#10
guaguale

其他终端可以吗?

其他终端没有测试,目前已解决

Reply View the author
anye7up
deepin
2020-12-04 23:24
#11
jelly

谢谢,设置后,现在好了。
@jingle 为啥系统中,不默认加上这个配置?

vim这类的编辑器,都是自行配置的。不会给你默认添加配置

Reply View the author