解决vim不能使用鼠标右键复制的问题
2009-09-01 16:04
656 查看
之前,为了解决一个语法加亮的问题更改了vimrc,之后,突然发现鼠标可以使用了,点到那里光标就定位到
那里,但是,随后发现,ctrl+shift+c不能用了,鼠标右键复制选项也是灰的。
到网上,搜了一下,发现是set mouse=a这句话的问题
这个是用来开启鼠标功能的。a表示所有模式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 mouse=a启动了所有模式,这样就屏蔽了鼠标右健功能.这里我设置为set mouse=v在可视模式下使用鼠标,然后搞定。但是,这样,其他模式就无法使用鼠标定位了,有点不爽。莫非鱼和熊掌不能兼得??又到网上找了下,发现确实这样,不过却另有所获:
无须更改set mouse=a用鼠标选中,按y键复制,然后点击要粘贴的地方使用鼠标中键粘贴!!!
支持夸文件粘贴,比使用命令方便多了
那里,但是,随后发现,ctrl+shift+c不能用了,鼠标右键复制选项也是灰的。
到网上,搜了一下,发现是set mouse=a这句话的问题
这个是用来开启鼠标功能的。a表示所有模式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 mouse=a启动了所有模式,这样就屏蔽了鼠标右健功能.这里我设置为set mouse=v在可视模式下使用鼠标,然后搞定。但是,这样,其他模式就无法使用鼠标定位了,有点不爽。莫非鱼和熊掌不能兼得??又到网上找了下,发现确实这样,不过却另有所获:
无须更改set mouse=a用鼠标选中,按y键复制,然后点击要粘贴的地方使用鼠标中键粘贴!!!
支持夸文件粘贴,比使用命令方便多了
相关文章推荐
- 解决vim 不能使用鼠标右键复制的问题
- 解决vim 不能使用鼠标右键复制的问题
- 如何解决在excel工作表中鼠标的右键不能使用的问题
- 解决vim中鼠标右键无法复制的问题
- 解决vim中鼠标右键无法复制的问题
- CentOS7安装后无法使用鼠标选中,复制问题解决
- VIM中鼠标右键无法复制的解决方法
- 八、VIM使用手册--鼠标右键无法复制
- 烂泥:使用火狐解决网站图片不能复制下载的问题
- 解决在Vim中鼠标右键不能粘贴
- win7鼠标右键一直转圈不能使用该怎么解决?
- OK6410 解决Qt移植后触摸屏不能使用、鼠标无法移动问题
- 解决vim当中鼠标右键粘贴不了的问题
- Linux入门:vim鼠标不能右键粘贴、跨系统复制粘贴
- Debian 9 VIM 使用鼠标右键复制
- VMWARE下Fedora8安装VM TOOLS后解决鼠标滚轮不能使用的问题
- .vimrc使能鼠标后,vim鼠标右键不能复制
- [转]vim下鼠标右键无法复制的解决
- 【转载】解决在Vim中鼠标右键不能粘贴
- CentOS7安装后无法使用鼠标选中,复制问题解决