vim-sync-incarg: A ZLE widget to create a sequence of numbers across terminal panes

by midchildan
macOS ◆ xterm-256color ◆ zsh 88 views

In a nutshell, this is Vim’s g_CTRL-A for zsh. It’s intended for multi-pane terminals that can broadcast keyboard input to all visible panes. When vim-sync-incarg is invoked, each pane will have an integer on the current line incremented by a different amount.

The example in the recording uses vim-sync-incarg to login to 5 sequentially numbered SSH hosts at the same time.

This is a demo for https://www.zsh.org/mla/workers/2024/msg00082.html.

See also: https://vimhelp.org/change.txt.html#v_g_CTRL-A