Fix for emacs shortcuts

From tmux docs:

"The default is emacs, unless the VISUAL or EDITOR environment variables are set
and contain the string `vi'."

For some reason,

set -g status-keys emacs

does not seem to override.  For now, let's get our emacs keybinds back by
clearing EDITOR.
This commit is contained in:
Andrew Tomaka 2016-08-14 21:07:53 -04:00
parent eff7e9d880
commit b5cab9cfa8

7
zshrc
View file

@ -27,9 +27,6 @@ fi
zle -N insert-sudo
bindkey "^z" insert-sudo
# default editor is vim
export EDITOR='vim'
# init rbenv
if test -d "$HOME/.rbenv"; then
eval "$(rbenv init -)"
@ -40,10 +37,6 @@ if test -d "$NVM_DIR"; then
source "$NVM_DIR/nvm.sh"
fi
# temporary fix for tmux
bindkey "^a" beginning-of-line
bindkey "^e" end-of-line
# completion
autoload -U compinit
compinit