zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.

What is zsh-vi-mode?

💻 A better and friendly vi(vim) mode plugin for ZSH.

Overview of zsh-vi-mode

What it is

zsh-vi-mode is a Zsh plugin that provides a better and friendlier vi(vim) mode for the Z shell. It is written purely in Zsh script without any third-party dependencies.

Key features

  • Pure Zsh script, no third-party dependencies - Near-native vi(vim) mode experience - Lower delay and better response for mode switching - Mode indication with different cursor styles - Cursor movement (navigation)
  • Insert & Replace (Insert mode)
  • Text Objects (a word, inner word, etc.)
  • Searching history - Undo, Redo, Cut, Copy, Paste, and Delete - Better surrounds functionality (Add, Replace, Delete, Move Around, and Highlight)
  • Switch keywords (Increase/Decrease Number, Boolean, Weekday, Month, etc.)
  • Open under cursor URL or file path with gx
  • Edit current command line in an external editor with vv
  • Repeating command such as 10p and 4fa
  • System clipboard integration (Copy/Paste)

Use cases

Users who want a more complete and native-like vi-mode in Zsh, addressing the limitations of the default Zsh vi mode.

Getting started

Clone the repository and source the plugin: shell git clone https://github.com/jeffreytse/zsh-vi-mode.git $HOME/.zsh-vi-mode source $HOME/.zsh-vi-mode/zsh-vi-mode.plugin.zsh Alternatively, install via a plugin manager (Antigen, zplug, zgen, zinit, etc.) as described in the repository README.

License and pricing

MIT license. Open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/jeffreytsezsh-vi-mode.svg)](https://yunodb.com/tools/jeffreytsezsh-vi-mode?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/jeffreytsezsh-vi-mode?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/jeffreytsezsh-vi-mode.svg" alt="Featured on YunoDB" height="20"></a>