commit 4ad78cfad3e1c5e97fc4cd48fea0de21973143bb parent 9d5b787d1a7131b2f8e2aa619cc9a3481d6f43e6 Author: Anders Damsgaard <andersd@riseup.net> Date: Tue, 3 Apr 2018 09:32:29 -0400 Escape shell insert mode with jk Diffstat:
M | links/.inputrc | | | 6 | ++++++ |
M | links/.tmux.conf | | | 7 | ++++--- |
M | links/.zshrc | | | 1 | + |
3 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/links/.inputrc b/links/.inputrc @@ -1,3 +1,9 @@ set editing-mode vi set keymap vi #set convert-meta on + +# vi settings +$if mode=vi + set keymap vi-insert + "jk": vi-movement-mode + $endif diff --git a/links/.tmux.conf b/links/.tmux.conf @@ -173,10 +173,11 @@ bind-key -n C-M-w new-window -n weather \ # Open new window and resize status accordingly (should be a hook instead) #bind-key Enter new-window -bind-key Enter new-window \ +#bind-key Enter new-window \ + #"tmux set status-right-length `echo $(tput cols)/2|bc|tr -d '\n'`; zsh" +bind-key Enter new-window "$SHELL" +bind-key -n M-Enter new-window \ "tmux set status-right-length `echo $(tput cols)/2|bc|tr -d '\n'`; zsh" -#bind-key Enter new-window "$SHELL" -bind-key -n M-Enter new-window "$SHELL" # Use nested bindings (<C-a>m) for grouping music-control bindings bind m switchc -Tmpd diff --git a/links/.zshrc b/links/.zshrc @@ -9,6 +9,7 @@ ARCH=$(uname) set -o noclobber # prevent overwriting files with > (override with 1>) set -o vi +bindkey jk vi-cmd-mode export EDITOR="vim"