vim insert VISUAL模式无法右键复制问题(转)
转自:https://blog.csdn.net/coder_oyang/article/details/89096219
vim中使用鼠标右键粘贴,失败。vim的模式:
网上解法:
1. 普通模式下输入“:set mouse-=a”,有效
2. .vimrc中添加:
if has('mouse')
set mouse-=a
endif
失效
查资料发现:vi的三种模式,命令模式,插入模式,可视模式。鼠标可以启动于各种模式中:
The mouse can be enabled for different modes:
n Normal mode
v Visual mode
i Insert mode
c Command-line mode
h all previous modes when editing a help file
a all previous modes
r for |hit-enter| and |more-prompt| prompt
Normally you would enable the mouse in all four modes with:
:set mouse=a
When the mouse is not enabled, the GUI will still use the mouse for
modeless selection. This doesn't move the text cursor.
所以配置文件中,set moues=a启动了所有模式,屏蔽了鼠标右键功能
但,我的 .vimrc文件并没这配置,最终发现:
无需修改任何配置,鼠标选中,按y键 -- 复制, 然后按 鼠标中键 粘贴,支持跨文件复制粘贴
————————————————
版权声明:本文为CSDN博主「coder_oyang」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/coder_oyang/article/details/89096219
最新文章
- XMLFeedSpider例子
- form表单编码方式设置为multipart/form-data,后台参数出现乱码情况
- android sdk manager国内无法更新的解决办法
- Javascript模式(第三章字面量与构造函数)------读书笔记
- 简单的css js控制table隔行变色
- C#中的DllImport
- [wordpress]后台自定义菜单字段和使用wordpress color picker
- 【分享】Python学习资源大合集
- Java中的WebService服务
- Django学习-24-Ajax
- 使用windows任务计划程序自动清除C盘缓存文件
- SpringMVC + MyBatis + Mysql + Redis(作为二级缓存) 配置
- android 开发 View _10_ Path之基本操作
- Prometheus 监控进程
- GoWeb-Gin 文件上载
- 《Linux内核》读书笔记 第十八章
- selenium webdriver窗口切换(上)
- js前端日期格式化处理
- Untrusted 游戏 通关攻略
- HDU_2586_How far away ?
热门文章
- 1.springAOP原理分析
- selenium 学习中遇到的问题汇总
- html里 调整字间距
- 利用Spring的AbstractRoutingDataSource解决多数据源的问题【代码手动切换,非AOP】
- 小D课堂-SpringBoot 2.x微信支付在线教育网站项目实战_2-5.开源工具的优缺点选择和抽象方法的建议
- Dubbo ==>; 简介
- 拷贝docker镜像到其他机器部署
- vue后端返回路由表来进行权限管理,加载指定路由结构,不包含则不加载
- Spring Boot Lombok配置
- PTA --- L1-002 打印沙漏