dotfiles/.config/shell/vi.zsh
2024-04-23 07:46:41 +05:00

10 lines
373 B
Bash

echo -ne '\e[3 q' # Use underline shape cursor on startup.
preexec() { echo -ne '\e[3 q' ;} # Use underline shape cursor for each new prompt.
# Edit line in vim with ctrl-e:
autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line
bindkey -M vicmd '^[[P' vi-delete-char
bindkey -M vicmd '^e' edit-command-line
bindkey -M visual '^[[P' vi-delete