mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
zsh: replace vi-mode with vim
This commit is contained in:
parent
12cf6ccbed
commit
15ccb79c5e
1 changed files with 9 additions and 5 deletions
14
root/.zshrc
14
root/.zshrc
|
|
@ -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)"'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue