diff options
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 |
