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