Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 gvim,我可以 map <C-LeftMouse>,但我不能使用 vim 在终端模拟器中运行(在我的例子中是 konsole)。
<C-LeftMouse>
我有理由认为这是因为未发送/检测到序列Ctrl+ CLICK :
在插入模式下,键入Ctrl+ V, Ctrl+ CLICK使用 gvim 打印 "",但使用 konsole 仅打印 ""。
如何让 vim / neovim 识别这个(有用的)组合?
编辑请注意,我已经set mouse=a在 vim
set mouse=a
在终端中,您必须启用鼠标:
set mouse=a map <C-LeftMouse> :echo 'Hello Left'<CR> map <C-RightMouse> :echo 'Hello Right'<CR>
看:help mouse
:help mouse