update zsh vi-mode plugin

add more key binds
This commit is contained in:
shiludeng 2017-12-02 21:06:47 +08:00
commit 060a349f14
3 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View file

@ -6,3 +6,5 @@ custom/
# temp files directories # temp files directories
cache/ cache/
log/ log/
.*.swp
.*.un~

4
.zshrc
View file

@ -93,3 +93,7 @@ export SVN_EDITOR=vim
# ssh # ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id" # export SSH_KEY_PATH="~/.ssh/dsa_id"
setopt no_nomatch setopt no_nomatch
function get_ftp_addr() {
echo "wget $HOST:$(cd `dirname $1` && pwd)/`basename $1`"
}

View file

@ -35,6 +35,8 @@ bindkey '^r' history-incremental-search-backward
# allow ctrl-a and ctrl-e to move to beginning/end of line # allow ctrl-a and ctrl-e to move to beginning/end of line
bindkey '^a' beginning-of-line bindkey '^a' beginning-of-line
bindkey '^e' end-of-line bindkey '^e' end-of-line
bindkey '^f' forward-char
bindkey '\e.' insert-last-word
# if mode indicator wasn't setup by theme, define default # if mode indicator wasn't setup by theme, define default
if [[ "$MODE_INDICATOR" == "" ]]; then if [[ "$MODE_INDICATOR" == "" ]]; then