Skip to content

Commit

Permalink
Add keybind to edit current command in $EDITOR
Browse files Browse the repository at this point in the history
  • Loading branch information
juanghurtado committed Feb 6, 2017
1 parent 6cbf0dc commit 418ed2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zsh/zshrc
Expand Up @@ -6,6 +6,11 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi

# Edit current command
autoload edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line

# Incremental search in vi-mode
bindkey '^r' history-incremental-search-backward

Expand Down

0 comments on commit 418ed2c

Please sign in to comment.