qmetrics.net

Zsh Vi Mode

Vi-style command-line editing plugin for Zsh

Zsh Vi Mode screenshot

Zsh Vi Mode is a Zsh-only plugin that swaps the shell's built-in vi mode for Vim-like behavior. Install it via popular plugin managers if you want normal, insert, and visual editing in the terminal

Overview

Zsh Vi Mode improves vi-style line editing inside Zsh for people who found the built-in vi bindings incomplete or unlike Vim. The plugin is written entirely in Zsh without third-party dependencies and aims for lower latency when switching modes and handling keys.

It provides normal and insert modes with distinct cursor styles, movement and text objects, history search, undo and redo, cut, copy, and paste, surround editing, keyword increment and decrement for numbers and common tokens, opening URLs or paths under the cursor, editing the command line in an external editor, repeat counts, and optional system clipboard integration. A configurable NEX readkey engine can replace ZLE for key handling, with timeouts for escape and multi-key sequences.

Setup is documented for Antigen, zplug, zgen, zinit, Oh My Zsh custom plugins, Antibody, Zap, Zim, Homebrew, Arch AUR, Nix, home-manager, Gentoo overlays, and manual sourcing from a clone. Requirements state Zsh 5.1.0 or newer.

Clipboard support can auto-detect macOS, Wayland, X11, WSL, and OSC 52 for remote sessions. Linux, macOS, and Windows setups appear in installation and open-under-cursor notes, including Cygwin and manual Windows configuration for gx.

Key features

  • Pure Zsh implementation without extra dependencies
  • Normal, insert, and visual modes with cursor styles
  • Vim-like movement, text objects, and surrounds
  • History search and repeating commands
  • System clipboard and OSC 52 integration
  • gx opens URL or file path under cursor
  • vv edits the command line in $EDITOR
  • Configurable escape keys and NEX readkey engine

Use cases

  • Vim-style shell editing in Zsh
  • Faster vi mode switching in interactive shells
  • Clipboard-aware yank and paste in the terminal
  • Surround and text-object edits on command lines
  • Incremental number and keyword tweaks in prompts

Tags

Similar software

Ink

React renderer for interactive terminal user interfaces

Lets developers build command-line apps with React components and Flexbox-style layouts rendered in the terminal.

  • React component model for CLIs
  • Yoga-based Flexbox terminal layout
  • Styled Text and Box components
TypeScriptCLIDetails →
★ 40.4k⟳ 10 days agoMIT

Spaceship Prompt

Customizable Zsh shell prompt for daily terminal work

Spaceship is a Zsh prompt theme that shows context at the command line. It can surface git status, language runtimes, containers, and other session details you configure.

  • Git and Mercurial repository status
  • Multi-language runtime version segments
  • Docker and Kubernetes context display
ShellmacOSDetails →
★ 20.6k⟳ 9 days agoMIT

Powerline

Python statuslines and shell prompts for editors and terminals

Powerline renders statuslines for Vim and prompts for bash, zsh, fish, tmux, IPython, and several window managers. Configuration uses JSON files under a user config directory.

  • Vim statusline with mode highlighting
  • Shell prompts for bash, zsh, and fish
  • tmux statusline integration
PythonLinux, CLIDetails →
★ 14.9k⟳ 8 months agoMIT

Pure prompt

Minimal fast prompt theme for Zsh

Pure is a Zsh prompt that shows path, git status, and timing with little visual noise. It installs via npm, Homebrew, or manual fpath setup.

  • Async git ahead behind checks
  • Dirty branch indicator
  • Command runtime display
ShellmacOSDetails →
★ 14.5k⟳ 1 month agoMIT

PTerm

Go library for styled terminal output

PTerm is a Go module for building readable command-line interfaces with tables, charts, progress bars, spinners, and interactive prompts.

  • Composable printer components
  • Progress bars and spinners
  • Tables, trees, and charts
GomacOS, WindowsDetails →
★ 5.6k⟳ 1 month agoMIT

Fzf Tab

fzf-powered completion UI for Zsh

fzf-tab replaces Zsh's default completion menu with an fzf picker while still using the standard completion system's candidates.

  • fzf UI for Zsh completions
  • Works with native Zsh compsys
  • Multi-select and group switching
ShellDetails →
★ 5k⟳ 6 months agoMIT