summaryrefslogtreecommitdiff
path: root/keybinds.zsh
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-10-27 11:01:52 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-10-27 11:01:52 +0800
commit9f3c2630e1a0135e83e855867c341c4a428de304 (patch)
treebe60f1632c06ec6a210f548f71a6b95c9df7922c /keybinds.zsh
parent5a79c24580d935ad9c3febf7911da2ecc82e03ee (diff)
bump: zshmain
omz->zim
Diffstat (limited to 'keybinds.zsh')
-rwxr-xr-xkeybinds.zsh17
1 files changed, 4 insertions, 13 deletions
diff --git a/keybinds.zsh b/keybinds.zsh
index 73bafc6..8a0a832 100755
--- a/keybinds.zsh
+++ b/keybinds.zsh
@@ -1,21 +1,14 @@
-##
-## Keybindings
-##
-
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
-bindkey -s '^K' 'ls^M'
-bindkey -s '^o' '_smooth_fzf^M'
+# bindkey -s '^K' 'ls^M'
+# bindkey -s '^o' '_smooth_fzf^M'
-# prepend sudo on the current commmand
-bindkey -M emacs '' _sudo_command_line
-bindkey -M vicmd '' _sudo_command_line
-bindkey -M viins '' _sudo_command_line
+# accept autosuggestion (from fish ctrl-f)
+bindkey '^F' autosuggest-accept
# fix backspace and other stuff in vi-mode
bindkey -M viins '\e/' _vi_search_fix
bindkey "^?" backward-delete-char
-#bindkey "^H" backward-delete-char
bindkey "^U" backward-kill-line
# check if not tty # if tty, it might break backspace/delete
@@ -23,5 +16,3 @@ if [[ $DISPLAY ]]; then
bindkey '^H' backward-kill-word
bindkey '5~' kill-word
fi
-
-# vim:ft=zsh:nowrap