Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

鼠标单击异常问题 #507

Open
guxiaobai opened this issue Feb 7, 2023 · 0 comments
Open

鼠标单击异常问题 #507

guxiaobai opened this issue Feb 7, 2023 · 0 comments

Comments

@guxiaobai
Copy link

guxiaobai commented Feb 7, 2023

问题描述

  • 在默认模式下鼠标单击总是定位到中间行,不是光标所在行
  • 在启用 kshenoy/vim-signature 插件的情况下,单击相当于按下了键盘的 m

环境

  • 系统: macos 12.6.3macos 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

Screen Shot 2023-02-08 at 01 20 55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant