summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-08-16 22:28:58 +0800
committerZhineng Li <im@zhineng.li>2026-08-16 22:28:58 +0800
commit8419d5fe3b514a57c9921877709402cb406daf63 (patch)
tree82c67f82f9cddb07d1ed604c977ab20409dd3184
parent88bb7528c6b106ca770365ee368db9d167e96c30 (diff)
downloaddotfiles-main.tar.gz
dotfiles-main.zip
use vi-style command-line editingHEADmain
-rw-r--r--.zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 77bbcc6..799a2e0 100644
--- a/.zshrc
+++ b/.zshrc
@@ -7,6 +7,12 @@ RPROMPT='%F{white}%~%f'
# Set default editor
export EDITOR='nvim'
+# Use vi-style command-line editing
+bindkey -v
+
+# Keep Ctrl-R reverse history search in insert mode
+bindkey -M viins '^R' history-incremental-search-backward
+
alias l='ls -lha'
alias vim='nvim'
alias v='nvim'