Oh! Ctrl-Z! I've been calling !zsh all these years, for quick shell access, and never thought of suspending vim.
Thanks for the nugget.
Thanks for the nugget.
# Make Ctrl-z also resume background process
fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
BUFFER="fg"
zle accept-line
else
zleush-input
zle clear-screen
fi
}
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z zle flush-input