From 060a349f1426d32dbbf0d0c7308870b566631e1f Mon Sep 17 00:00:00 2001 From: shiludeng Date: Sat, 2 Dec 2017 21:06:47 +0800 Subject: [PATCH] update zsh vi-mode plugin add more key binds --- .gitignore | 2 ++ .zshrc | 4 ++++ plugins/vi-mode/vi-mode.plugin.zsh | 2 ++ 3 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index b2022081a..a0bd42aec 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ custom/ # temp files directories cache/ log/ +.*.swp +.*.un~ diff --git a/.zshrc b/.zshrc index 505085beb..37be122ad 100644 --- a/.zshrc +++ b/.zshrc @@ -93,3 +93,7 @@ export SVN_EDITOR=vim # ssh # export SSH_KEY_PATH="~/.ssh/dsa_id" setopt no_nomatch + +function get_ftp_addr() { + echo "wget $HOST:$(cd `dirname $1` && pwd)/`basename $1`" +} diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh index 0e0d469ca..d0aa74cab 100644 --- a/plugins/vi-mode/vi-mode.plugin.zsh +++ b/plugins/vi-mode/vi-mode.plugin.zsh @@ -35,6 +35,8 @@ bindkey '^r' history-incremental-search-backward # allow ctrl-a and ctrl-e to move to beginning/end of line bindkey '^a' beginning-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" == "" ]]; then