Skip to content

Commit

Permalink
release: v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Dec 15, 2020
1 parent 7c7fcb5 commit a0ba84c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions zsh-vi-mode.zsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# vi-mode.zsh -- vi mode for Zsh
# zsh-vi-mode.zsh -- better vi mode for Zsh
# Copyright © 2020 Jeffrey Tse
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -43,7 +43,7 @@
declare -gr ZVM_NAME='zsh-vi-mode'
declare -gr ZVM_DESCRIPTION='💻 A better and friendly vi(vim) mode plugin for ZSH.'
declare -gr ZVM_REPOSITORY='https://github.com/jeffreytse/zsh-vi-mode'
declare -gr ZVM_VERSION='0.1.0'
declare -gr ZVM_VERSION='0.2.0'

# Reduce ESC delay
# Set to 0.1 second delay between switching modes (default is 0.4 seconds)
Expand Down Expand Up @@ -349,11 +349,10 @@ function zvm_init() {

# Surround text-object
# Enable surround text-objects (quotes, brackets)

# Remove default key bindings of 's' in vicmd mode
bindkey -M vicmd -r 's'

# Brackets
# Keybindings for brackets
for s in ${(s..)^:-'()[]{}<>bB'}; do
for c in {a,i}${s}; do
bindkey -M visual "$c" zvm_select_surround
Expand All @@ -366,7 +365,7 @@ function zvm_init() {
done
done
# Quotes
# Keybindings for quotes
for s in {\',\",\`}; do
for c in {a,i}${s}; do
bindkey -M visual "$c" zvm_select_surround
Expand Down

0 comments on commit a0ba84c

Please sign in to comment.