space-vim
space-vim copied to clipboard
鼠标单击异常问题
问题描述
- 在默认模式下鼠标单击总是定位到中间行,不是光标所在行
- 在启用
kshenoy/vim-signature
插件的情况下,单击相当于按下了键盘的m
环境
- 系统:
macos 12.6.3
、macos 13.2
- 终端:
iterm2
版本与问题
https://github.com/vim/vim/releases/tag/v9.0.1168
Problem: Code to enable/disable mouse is not from terminfo/termcap. Solution: Request the "XM" entry and use it to set 'ttymouse' if possible.
https://vimhelp.org/term.txt.html
The "XM" entry includes "1006" to enable SGR style mouse reporting. This supports columns above 223. It also includes "1004" which enables focus reporting. The t_fe and t_fd entries can be left empty (they don't have entries in terminfo/termcap anyway).
临时可用方案
set ttymouse=sgr