[Seek Help] 在终端窗口命令行模式下用vi编辑文件,不能复制,只能粘帖
Tofloor
poster avatar
youngwq
deepin
2022-04-01 01:44
Author

image.png

右键菜单没有复制选项

Reply Favorite View the author
All Replies
liwl
deepin
2022-04-01 01:53
#1
  • 终端选中即复制
  • vim没有复制的话,编辑~/.vimrc文件,写入
    if has('mouse')
        set mouse-=a
    endif
    

保存退出

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-04-01 01:53
#2
  • 确实有这个现象;
  • 可以先使用 ctrl + shift +c来复制。
Reply View the author
gaozexuan
deepin
2022-04-01 03:04
#3
babyfengfjx
  • 确实有这个现象;
  • 可以先使用 ctrl + shift +c来复制。

不是 ctrl-shift-c吗?

Reply View the author
gaozexuan
deepin
2022-04-01 03:05
#4
liwl
  • 终端选中即复制
  • vim没有复制的话,编辑~/.vimrc文件,写入
    if has('mouse')
        set mouse-=a
    endif
    

保存退出

vi应该是不读取~/.vimrc的吧

Reply View the author
beavailable
deepin
2022-04-01 03:38
#5
gaozexuan

vi应该是不读取~/.vimrc的吧

现在没有 vi了,系统里的 vivim的别名。

Reply View the author
babyfengfjx
Super Moderator
CQA
2022-04-01 16:57
#6
gaozexuan

不是 ctrl-shift-c吗?

😂 是的是的,打错了

Reply View the author
youngwq
deepin
2022-04-01 18:41
#7
liwl
  • 终端选中即复制
  • vim没有复制的话,编辑~/.vimrc文件,写入
    if has('mouse')
        set mouse-=a
    endif
    

保存退出

嗯,这种方法可以,谢谢!

Reply View the author