File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
zsh_custom/plugins/bindkey-vim Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ bindkey '^h' backward-delete-char
88bindkey ' ^w' backward-kill-word
99bindkey ' ^r' history-incremental-search-backward
1010
11+ # Ctrl-X Ctrl-E to edit command line in $EDITOR
12+ autoload -Uz edit-command-line
13+ zle -N edit-command-line
14+ bindkey -M viins ' ^X^E' edit-command-line
15+ bindkey -M vicmd ' ^X^E' edit-command-line
16+
1117function zle-line-init zle-keymap-select {
1218 VIM_PROMPT=" %{$fg_bold [yellow]%} [% NORMAL]% %{$reset_color %}"
1319 RPS1=" ${${KEYMAP/ vicmd/ $VIM_PROMPT } / (main|viins)/ } $EPS1 "
Original file line number Diff line number Diff line change @@ -94,7 +94,3 @@ plugins=(
9494)
9595source $ZSH /oh-my-zsh.sh
9696
97- # Re-activate the canonical Ctrl-X Ctrl-E to edit-and-execute-command
98- autoload -Uz edit-command-line # load the widget
99- zle -N edit-command-line # tell ZLE it’s an editor widget
100- bindkey ' ^X^E' edit-command-line # Emacs/Readline style binding
You can’t perform that action at this time.
0 commit comments