liuchengxu / space-vim

:four_leaf_clover: Lean & mean spacemacs-ish Vim distribution
https://liuchengxu.github.io/space-vim/
MIT License
2.85k stars 255 forks source link

鼠标单击异常问题 #507

Open guxiaobai opened 1 year ago

guxiaobai commented 1 year ago

问题描述

环境

版本与问题

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