https://github.com/sitdisch/zsh-vim-inclusive-v
Zsh-Plugin | Enables Vim's inclusive v for backward operations in vicmd
https://github.com/sitdisch/zsh-vim-inclusive-v
shell shell-extension shell-script vi-keybinds vi-mode vim vim-inclusive vim-keymaps widget zsh zsh-plugin zsh-plugins zshell zshrc
Last synced: 4 months ago
JSON representation
Zsh-Plugin | Enables Vim's inclusive v for backward operations in vicmd
- Host: GitHub
- URL: https://github.com/sitdisch/zsh-vim-inclusive-v
- Owner: sitdisch
- License: mit
- Created: 2019-06-13T11:01:14.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-28T08:15:10.000Z (over 5 years ago)
- Last Synced: 2025-01-17T16:27:03.780Z (over 1 year ago)
- Topics: shell, shell-extension, shell-script, vi-keybinds, vi-mode, vim, vim-inclusive, vim-keymaps, widget, zsh, zsh-plugin, zsh-plugins, zshell, zshrc
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vim's inclusive v
## Table of Contents
- [Example](#example)
- [Explanation](#explanation)
- [Installation](#installation)
- [antigen](#antigen)
- [manually](#manually)
- [zgen](#zgen)
- [zplug](#zplug)
- [zplugin](#zplugin)
- [About the Author](#about-the-author)
## Example

1. shows the difference between the `db` and `dvb` key-sequence
2. shows the difference between the `dFg` and `dvFg` key-sequence
## Explanation
This is a zsh plugin. It enables Vim's inclusive **v** in the terminal for backward operations. That means, if you are in the vi-command-mode (vicmd) of the shell and you press **v** after an operator and before a motion command, then you force the operator to include the current char under the cursor in the backward operation too.
* general key-sequence-structure: `{operator}v{movement}`
* {operator}: `d, y, c,...`
* {movement}: `b, B, h, ^, 0, |, ge, gE, F, T`
* consider: other movements are not included currently
Other features of the inclusive/exclusive **v** are not enabled in this widget. Hope you enjoy it anyway.
## Installation
Use one of the following install-procedures to get this zsh-plugin.
### antigen
```zsh
antigen bundle sitdisch/zsh-vim-inclusive-v
antigen apply
```
### manually
Clone this repository to your destination
```zsh
% git clone https://github.com/sitdisch/zsh-vim-inclusive-v
```
and then source the zsh-file in your zshrc file.
```zsh
% source .../zsh-vim-inclusive-v/zsh-vim-inclusive-v.zsh
```
### zgen
```zsh
zgen load sitdisch/zsh-vim-inclusive-v
zgen save
```
### zplug
```zsh
zplug 'sitdisch/zsh-vim-inclusive-v'
zplug install
zplug load --verbose
```
### zplugin
```zsh
zplugin light sitdisch/zsh-vim-inclusive-v
```
That's it. You don't have to map any new keybindings or adapt the vi-modes further.
P.s. the visual-mode with **v** is still working.
## About the Author
|Author |Source |
|---------------|-------------------------------------------------------|
|sitdisch | |
Copyright (c) 2019 sitdisch