From a8625a6368a542d020221f201dc63eb8284e5594 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 17 Nov 2011 16:57:35 +0500 Subject: f --- files/.zsh/rc/S30_binds | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'files/.zsh/rc/S30_binds') diff --git a/files/.zsh/rc/S30_binds b/files/.zsh/rc/S30_binds index 7808b83..4cfeb7a 100644 --- a/files/.zsh/rc/S30_binds +++ b/files/.zsh/rc/S30_binds @@ -1,3 +1,9 @@ +backward-delete-to-slash() { + local WORDCHARS=${WORDCHARS//\//} + zle .backward-delete-word +} +zle -N backward-delete-to-slash + bindkey -v "^[[3~" delete-char bindkey -v "^[[5~" backward-word bindkey -v "^[[6~" forward-word @@ -13,6 +19,7 @@ bindkey -v "^R" history-incremental-search-backward bindkey -v "^U" kill-whole-line bindkey -v "^V" quoted-insert bindkey -v "^W" backward-kill-word +bindkey -v "^[w" backward-delete-to-slash bindkey -v "^N" down-history bindkey -v "^P" up-history -- cgit v1.2.3