Skip to content

0.1.7

Latest

Choose a tag to compare

@banh-me banh-me released this 26 Oct 06:48
316785f

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.
{
  "showHardwareCursor": true,
  "piVim": {
    "cursor_shape": {
      "normal": "block",
      "insert": "bar",
      "replace": "underline",
      "visual": "block",
      "visualLine": "block"
    }
  }
}

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