最近笔记本上用vim时,鼠标右键不能复制。网上查找一番找到了解决方法:
方法一:在普通模式下键入“ :set mouse-=a ”(不包括引号)
方法二:编辑 ~/.vimrc 文件,加入如下代码: if has('mouse') set mouse-=a endif 方法一每次打开vim时都需要设置一次。方法二改了配置文件后,问题就解决了。
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.
vim color scheme
http://code.google.com/p/vimcolorschemetest/