[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master f41cde8 2/5: Regularize bindkey commands
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master f41cde8 2/5: Regularize bindkey commands |
Date: |
Wed, 2 Oct 2019 17:34:24 -0400 (EDT) |
branch: master
commit f41cde81a39cf74b789928157e9e55be4b45bd5f
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Regularize bindkey commands
Rewrote bindkey commands for concinnity:
- always single quotes, never double
- always '\e', never '^['
---
gwc/.zshrc | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gwc/.zshrc b/gwc/.zshrc
index 0d6f8fa..051e5ad 100644
--- a/gwc/.zshrc
+++ b/gwc/.zshrc
@@ -43,11 +43,12 @@ export LESSCHARSET=utf-8
# Use vim keybindings.
bindkey -v
-# bindkey "\e[3~" delete-char # Del
+# These three seem to be set by default:
+# bindkey '\e[3~' delete-char # Del
# bindkey '\e[H' beginning-of-line # Home
# bindkey '\e[F' end-of-line # End
-bindkey "^[[1;5D" backward-word # Ctrl-left
-bindkey "^[[1;5C" forward-word # Ctrl-right
+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;
- [lmi-commits] [lmi] master updated (4fa3b0b -> 0221ad7), Greg Chicares, 2019/10/02
- [lmi-commits] [lmi] master f41cde8 2/5: Regularize bindkey commands,
Greg Chicares <=
- [lmi-commits] [lmi] master b02f0fc 1/5: Make the X clipboard available to root, for vim only, Greg Chicares, 2019/10/02
- [lmi-commits] [lmi] master b559b1a 4/5: Designate release candidate 20191002T1344Z, Greg Chicares, 2019/10/02
- [lmi-commits] [lmi] master 5d11d32 3/5: Bind some useful emacs-mode features in vim mode, Greg Chicares, 2019/10/02
- [lmi-commits] [lmi] master 0221ad7 5/5: Add a script to install a centos chroot on a debian host, Greg Chicares, 2019/10/02