mirror of
https://github.com/danielepintore/dotfiles.git
synced 2026-06-15 20:25:13 +02:00
zsh: add bind to delete a word with ctrl+backspace
This commit is contained in:
@@ -7,6 +7,9 @@ export KEYTIMEOUT=1
|
||||
bindkey -M viins '\e[1;5D' backward-word # Ctrl+Left in insert mode
|
||||
bindkey -M viins '\e[1;5C' forward-word # Ctrl+Right in insert mode
|
||||
|
||||
# ctrl+backspace to delete a word
|
||||
bindkey '^H' backward-kill-word
|
||||
|
||||
# Edit line in vim with ctrl-e:
|
||||
autoload edit-command-line; zle -N edit-command-line; zstyle :zle:edit-command-line editor nvim;
|
||||
bindkey '^e' edit-command-line
|
||||
|
||||
Reference in New Issue
Block a user