zsh: replace vi-mode with vim

This commit is contained in:
He4eT 2025-05-14 17:10:48 +02:00
commit 15ccb79c5e

View file

@ -30,13 +30,8 @@ CASE_SENSITIVE="false"
ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=(end-of-line) ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=(end-of-line)
MODE_INDICATOR="%F{yellow}◼%f"
KEYTIMEOUT=1
bindkey -M vicmd 'V' edit-command-line
plugins=( plugins=(
git git
vi-mode
fancy-ctrl-z fancy-ctrl-z
fzf fzf
zsh-autosuggestions zsh-autosuggestions
@ -44,6 +39,15 @@ plugins=(
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
# Go to Vim
open-in-editor() {
zle edit-command-line
zle end-of-line
}
zle -N open-in-editor
bindkey '^v' open-in-editor
# Aliases # Aliases
alias fakemsg='echo "$(curl -s https://whatthecommit.com/index.txt)"' alias fakemsg='echo "$(curl -s https://whatthecommit.com/index.txt)"'