diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-10-27 11:01:52 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-10-27 11:01:52 +0800 |
| commit | 9f3c2630e1a0135e83e855867c341c4a428de304 (patch) | |
| tree | be60f1632c06ec6a210f548f71a6b95c9df7922c /keybinds.zsh | |
| parent | 5a79c24580d935ad9c3febf7911da2ecc82e03ee (diff) | |
bump: zshmain
omz->zim
Diffstat (limited to 'keybinds.zsh')
| -rwxr-xr-x | keybinds.zsh | 17 |
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 |
