Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1020846
  • 博文数量: 297
  • 博客积分: 11721
  • 博客等级: 上将
  • 技术积分: 3431
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-25 10:21
文章分类

全部博文(297)

文章存档

2016年(9)

2011年(71)

2010年(137)

2009年(80)

分类: LINUX

2010-05-28 10:15:34

之前,为了解决一个语法加亮的问题更改了vimrc,之后,突然发现鼠标可以使用了,点到那里光标就定位到 那里,但是,随后发现,ctrl+shift+c不能用了,鼠标右键复制选项也是灰的。
到网上,搜了一下,发现是set mouse=a这句话的问题
这个是用来开启鼠标功能的。a表示所有模式

vi的三种模式:命令模式,插入模式,可视模式.鼠标可以启动于各种模式中:
The mouse can be enabled for different modes:
 
                    Normal mode
                     Visual mode
                     Insert mode
                     Command-line mode
                     all previous modes when editing a help file
                     all previous modes
                     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在可视模式下使用鼠标,然后搞定。

阅读(700) | 评论(0) | 转发(0) |
0

上一篇:putty的复制和粘贴

下一篇:内核符号

给主人留下些什么吧!~~