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