1
0
Fork 0
dotfiles/common/.config/zsh/configs/bindings

25 lines
579 B
Plaintext
Raw Normal View History

2024-06-10 01:45:17 +02:00
#!/bin/zsh
2023-03-29 16:15:06 +02:00
# vi mode
bindkey -v
# Use vim keys in tab complete menu:
bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history
bindkey -M menuselect 'l' vi-forward-char
bindkey -M menuselect 'j' vi-down-line-or-history
2023-03-29 18:23:08 +02:00
# Widgets
2023-11-20 14:30:34 +01:00
bindkey '^e' lfwrap
2023-03-29 16:15:06 +02:00
bindkey '^g' lg
2024-06-10 23:26:33 +02:00
bindkey '^z' togglefg
bindkey '^s' toggle-fzf-tab
2023-11-20 14:30:34 +01:00
bindkey -M vicmd '^v' edit-command-line
2023-03-29 16:15:06 +02:00
2023-03-29 18:23:08 +02:00
bindkey '^?' backward-delete-char
2023-12-11 19:14:58 +01:00
bindkey '^[[3~' delete-char
2023-03-29 16:15:06 +02:00
bindkey "^[[H" beginning-of-line
2023-12-11 19:14:58 +01:00
bindkey '^[[4~' end-of-line
2023-03-29 16:15:06 +02:00
bindkey '^[[1;5C' forward-word
bindkey '^[[1;5D' backward-word