From 15ccb79c5e924fdf317f57320ea650b6d2b8ec7c Mon Sep 17 00:00:00 2001 From: He4eT Date: Wed, 14 May 2025 17:10:48 +0200 Subject: [PATCH] zsh: replace vi-mode with vim --- root/.zshrc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/root/.zshrc b/root/.zshrc index 3c3a837..b1233b4 100644 --- a/root/.zshrc +++ b/root/.zshrc @@ -30,13 +30,8 @@ CASE_SENSITIVE="false" ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=(end-of-line) -MODE_INDICATOR="%F{yellow}◼%f" -KEYTIMEOUT=1 -bindkey -M vicmd 'V' edit-command-line - plugins=( git - vi-mode fancy-ctrl-z fzf zsh-autosuggestions @@ -44,6 +39,15 @@ plugins=( 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 alias fakemsg='echo "$(curl -s https://whatthecommit.com/index.txt)"'