bindkey

  • 設定しないと環境変数 EDITORやVISUALを参照するので設定

export SVN_EDITOR='/opt/local/bin/vim'
export EDITOR='/opt/local/bin/vim'

bindkey -e

  • コマンド履歴の検索機能

bindkey "^P" history-beginning-search-backward-end
bindkey "^N" history-beginning-search-forward-end

bindkey -v
bindkey '^R' history-incremental-search-backward