vim + iterm:如何使用鼠标的一切EXCEPT选择? [英] vim + iterm: how to use mouse for everything EXCEPT selection?

查看:276
本文介绍了vim + iterm:如何使用鼠标的一切EXCEPT选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,有一个非常具体的安装问题。我使用Mac OS X,iTerm和vim。我真的很喜欢在正常模式下使用鼠标点击标签,在正常模式下滚动等(例如我已经在iTerm / vim中使鼠标工作了)。

Ok, have a very specific setup question. I'm using Mac OS X, iTerm, and vim. I really like using my mouse for clicking tabs in normal mode, scrolling in normal mode etc. (e.g. I already have the mouse working within iTerm/vim).

但是,我不喜欢使用视觉模式进行选择。我只是想使用OS X选择 vim的视觉选择。下一个逻辑步骤?在鼠标选项中禁用视觉选择:

However, I dislike using visual mode for selecting. I just want to use OS X selection not vim's visual select. The next logical step? Disable visual selection in the mouse options:

set mouse = nicr

问题是,当我尝试选择(使用鼠标)vim拦截鼠标点击,不允许我选择!

The problem with this is that when I try to select (using the mouse) vim intercepts the mouse click and doesn't allow me to select at all!

任何人都知道如何处理这个问题?

Anyone know how deal with this issue? It feels like its solvable if one knew the proper character/control codes (which I obviously do not).

目标:在vim中使用鼠标,除了select之外的所有东西, 。让我们选择iTerm / OS。

Goal: use the mouse in vim for everything except "select". Let iTerm/OS do the selection.

推荐答案

我没有Mac,但是在Linux下,

I don't have a Mac, but under Linux holding Shift while highlighting allows you to use the mouse to copy with the mouse settings you mentioned.

请参阅:h鼠标中的注意:

See the "Note:" in :h mouse

这篇关于vim + iterm:如何使用鼠标的一切EXCEPT选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆