dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 639312b0420c7bb28ca2b6ac5b1104337aa274ed
parent e8844ed9bb95fdf0c31eb417d0bb58f5c7806f56
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  3 Jan 2019 10:50:41 +0100

Edit command line from normal mode with 'v' keypress

Diffstat:
Mlinks/.zshrc | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/links/.zshrc b/links/.zshrc @@ -20,7 +20,7 @@ unsetopt hist_verify # verify before executing cmd from history (e.g. !!) unsetopt notify # report status of bg jobs immediately unsetopt nomatch # show error if wildcards do not match any files -autoload -Uz add-zsh-hook cdr chpwd_recent_dirs compinit select-bracketed select-quoted zmv +autoload -Uz add-zsh-hook cdr chpwd_recent_dirs compinit edit-command-line select-bracketed select-quoted zmv compinit add-zsh-hook chpwd chpwd_recent_dirs @@ -29,6 +29,7 @@ zstyle completion:*:*:cdr:*:* menu selection zstyle :chpwd:* recent-dirs-insert fallback zstyle :chpwd:* recent-dirs-pushd true +zle -N edit-command-line zle -N select-bracketed zle -N select-quoted @@ -42,6 +43,7 @@ SAVEHIST=$((2 ** 17)) set -o vi bindkey -v bindkey jk vi-cmd-mode +bindkey -M vicmd v edit-command-line bindkey -a ? fzf-history-widget bindkey -a k history-substring-search-up bindkey -a j history-substring-search-down