lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 5d11d32 3/5: Bind some useful emacs-mode feat


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 5d11d32 3/5: Bind some useful emacs-mode features in vim mode
Date: Wed, 2 Oct 2019 17:34:25 -0400 (EDT)

branch: master
commit 5d11d321d55577ef42d43f47bcb10baf260d3900
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Bind some useful emacs-mode features in vim mode
---
 gwc/.zshrc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gwc/.zshrc b/gwc/.zshrc
index 051e5ad..f680284 100644
--- a/gwc/.zshrc
+++ b/gwc/.zshrc
@@ -51,9 +51,12 @@ bindkey '\e[1;5D' backward-word  # Ctrl-left
 bindkey '\e[1;5C' forward-word   # Ctrl-right
 bindkey '\e[1;3D' backward-word  # Alt-left
 bindkey '\e[1;3C' forward-word   # Alt-right
-# By default, zsh unfortunately binds ^S for this purpose;
-# use ^T instead, leaving ^S for flow control.
-bindkey '^T' history-incremental-search-forward
+
+# Enable useful features bound by default in emacs mode:
+bindkey '^F' history-incremental-search-forward  # emacs Ctrl-S
+bindkey '^A' history-incremental-search-backward # emacs Ctrl-R
+bindkey '^G' send-break                          # emacs Ctrl-G
+bindkey '^T' push-line                           # emacs Esc-Q
 
 prompt='%d[%?]%(!.#.$)'
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]