macvim-dev / macvim-dev/macvim
Slow buffer updates with Undotree plugin
まだ誰も着手していません。
- 主要言語
- Vim Script
- スター
- 7.9k
- フォーク
- 691
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Undotree is a plugin that adds a visual representation of Vim's undo tree. When this tree view is open, certain operations (undo, redo, joining lines) are slow in the GUI, but not in the terminal.
To reproduce:
- Add the Undotree plugin to
~/.vim/pack/mbbill/opt/undotreeso that it will be found bypackadd:
mkdir -p ~/.vim/pack/mbbill/opt
git clone https://github.com/mbbill/undotree ~/.vim/pack/mbbill/opt
- Start MacVim with
mvim -u vimrcwherevimrcis
set nocompatible
set undofile
packadd undotree
- Open the undo tree visualiser added by Undotree:
:UndotreeToggle - Insert 100 lines:
100ii<CR><Esc> - Go the first line:
gg - Join all the lines: Hold
J
There should be noticeable lag. Now repeat steps 1-6 except with mvim -v -u vimrc in step 2. Joining the lines should be quite snappy.
I've attached two videos below showing the behaviour in each case, and I've included my system details.
GUI:
https://github.com/macvim-dev/macvim/assets/123784102/4e1828c4-4e40-4f29-9171-6c77a1b15f9e
Terminal.app:
https://github.com/macvim-dev/macvim/assets/123784102/26cc3bda-fd04-4165-9bd1-712da0132d45
System details:
OS: macOS Ventura 13.4 arm64
Shell: zsh 5.9
Terminal: Terminal.app
$TERM: xterm-256color
Vim: Downloaded from GitHub Releases
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
mvim -u vimrc、packadd undotree、:UndotreeToggle を使って MacVim で遅延を再現し、説明されているとおり mvim -v -u vimrc と比較してください。Undo、Redo、または行の結合中に関係する GUI パスを追跡してください。Undotree ビューを開いた状態でも、これらの操作が目立って遅くならなくなれば issue は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- macos, vim
- 領域
- desktop, performance
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100