-
-
Notifications
You must be signed in to change notification settings - Fork 688
Open
Milestone
Description
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:
GUI.mov
Terminal.app:
Terminal.mov
System details:
OS: macOS Ventura 13.4 arm64
Shell: zsh 5.9
Terminal: Terminal.app
$TERM: xterm-256color
Vim: Downloaded from GitHub Releases
UncleBill
Metadata
Metadata
Assignees
Labels
No labels