diff options
| author | Anton Bobov <abobov@gmail.com> | 2011-11-17 16:57:35 +0500 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2011-11-17 16:57:35 +0500 |
| commit | a8625a6368a542d020221f201dc63eb8284e5594 (patch) | |
| tree | b06feaf14b6ca6ed7581f270e7ba16b0102fc540 /files/.zsh/rc/S30_binds | |
| parent | c3339413792acb963c93a1e85124366d078abe66 (diff) | |
f
Diffstat (limited to 'files/.zsh/rc/S30_binds')
| -rw-r--r-- | files/.zsh/rc/S30_binds | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
