From 8419d5fe3b514a57c9921877709402cb406daf63 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 16 Aug 2026 22:28:58 +0800 Subject: use vi-style command-line editing --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.zshrc') 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' -- cgit v1.2.3