Vim enters into visual mode on selecting text after El Capitan update

喜夏-厌秋 提交于 2019-12-21 07:12:30

问题


Issue is what the title says. Earlier I used to copy text from text files open in vim simply by selecting text and doing Ctrl + C. But now it puts me into visual mode, thus not allowing to copy the text. Its really annoying. Anybody knows any fix for this.

Thanks.


回答1:


You probably have the mouse mode active. You can turn it off with:

:set mouse=

And turn it back on with

:set mouse=a

If you are using iTerm, you can leave mouse mode on all the time if you want, and hold Option when you want to select without using visual mode. I am not aware of a way to do that in OS X Terminal.

Update (from Younes in comments): For Terminal.app on El Capitan, press the Fn key to bypass the mouse mode. See this question for more.



来源:https://stackoverflow.com/questions/33077429/vim-enters-into-visual-mode-on-selecting-text-after-el-capitan-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!