Skip to content

鼠标单击异常问题 #507

@guxiaobai

Description

@guxiaobai

问题描述

  • 在默认模式下鼠标单击总是定位到中间行,不是光标所在行
  • 在启用 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions