Added
- Per-mode terminal cursor shapes. New
piVim.cursor_shape setting maps each vim mode to a DECSCUSR cursor shape: block, bar/beam/line, underline, their blinking variants, or raw codes 0–6. Requires pi's hardware cursor (showHardwareCursor: true or PI_HARDWARE_CURSOR=1) and a terminal that supports DECSCUSR. Omitted modes keep the previous shape; the terminal default is restored when vim is disabled or the editor is replaced.
Fixed
- REPLACE → NORMAL did not restore the NORMAL cursor shape. Pressing
Esc in REPLACE mode now triggers the mode-change callback, so the configured NORMAL shape is applied immediately (previously the underline from REPLACE persisted).
Docs
- Documented installing from GitHub, including that an unpinned git install tracks
main (unreleased work), and how to pin a tag or commit.
Install
pi install npm:@banh-me/pi-vim@0.1.7
# or from git
pi install git:github.com/banh-me/pi-vim@v0.1.7
{ "showHardwareCursor": true, "piVim": { "cursor_shape": { "normal": "block", "insert": "bar", "replace": "underline", "visual": "block", "visualLine": "block" } } }