En

@0xkahi/pi-vim-keys

Provides a Vim-style input editor for the Pi platform.

开发流程 写业务代码开发AI应用 通用 ★ 208 Updated 2026-08-02

Install & Use

Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:

Help me install this AI Skill: @0xkahi/pi-vim-keys.
It is used for: Provides a Vim-style input editor for the Pi platform.
Full Skill content: https://321skill.com/skills/0xkahi-pi-vim-keys/raw/index.md
Read that page and install it.

The prompt includes a link to the full Skill content. You can also view the full content.

This Skill addresses the lack of Vim keybindings in the Pi platform (an AI Agent development environment). In practice, developers accustomed to Vim mode often find their workflow inefficient when using the default input box, which only supports standard text editing, forcing frequent mouse and keyboard switching that disrupts focus. After installation, Pi's editor is completely replaced with a Vim-style editor supporting Insert, Normal, Visual, and Visual Line modes, enabling full keyboard operation when writing code, prompts, or documentation.

Usage is straightforward: simply run an installation command to add the Skill globally or locally to Pi. Vim keybindings will then be automatically enabled in Pi's editor. By default, press Esc to enter Normal mode, but you can configure sequences like jj or kj. By setting a leader key binding, you can map common operations (such as opening an external editor, pasting images, restoring sessions, etc.) to shortcuts, even supporting multi-character sequences like <leader>oe. In Visual mode, it also supports surround operations to quickly add brackets or quotes to selected text.

It is ideal for developers who already use Vim or Neovim in their daily workflow, especially those using Pi as an AI Agent coding assistant and frequently editing code and prompts. For team collaboration, a local installation (using the -l parameter) writes the configuration to the project directory, making it easy for team members to share the same Vim keybindings and shortcut settings.

Before installation, it is recommended to ensure the Pi environment is correctly configured and the Node.js version meets the requirements. Note that this Skill primarily replaces Pi's built-in editor and does not affect external terminals or other editing tools. For a richer experience that fully reuses existing Vim configurations, you can combine it with an external editor command bound to <leader>e.

Key Features

Unlike Pi's default plain text input box, it fully supports Vim's Insert, Normal, Visual, and Visual Line modes, and allows custom `leader` key bindings to Pi's AppKeybinds and extension commands, going beyond mere Vim keybinding emulation.

Limitations

Requires the Pi platform environment and depends on Node.js; it does not run in editors outside of Pi.

FAQ

How do I configure the key sequence to exit Insert mode to Normal mode as 'jj'?

Set `"insertToNormal": ["j", "j"]` in settings.json. Supported sequences include `escape` (default), `jj`, `kj`, etc.

Which Vim modes are supported?

It supports Insert, Normal, Visual, and Visual Line modes. In Visual mode, you can use the `s` key for surround operations (e.g., `sab` to add brackets, `siq` to add quotes).

Installation guide for AI assistants

If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:

Visit https://321skill.com/skills/0xkahi-pi-vim-keys/raw/index.md to read the original Skill definition (Markdown format) for @0xkahi/pi-vim-keys, and install it according to the instructions.