Adds new bindkey for vi insert mode

This commit is contained in:
William Carroll 2016-06-27 22:59:20 -04:00
parent a8b8bf3716
commit bd2d3361c1

View file

@ -1,6 +1,6 @@
export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:$PATH export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:$PATH
echo "Welcome back, William" echo "Welcome back, $USER"
# use vi bindings for terminal input # use vi bindings for terminal input
set -o vi set -o vi
@ -15,6 +15,15 @@ alias grep="egrep"
alias c="clear" alias c="clear"
alias vi="vim" alias vi="vim"
alias find="find -E"
# if pygmentize isn't installed run...
# sudo pip install pygments
# colorizes syntax of files
alias ccat="pygmentize -g"
alias dir='find . -maxdepth 1 -type d -regex "\.\/[^.].+"'
# END: aliases # END: aliases
# BEGIN: functions # BEGIN: functions
@ -24,9 +33,13 @@ functon npms() {
} }
# END: functions # END: functions
# bindkey reverse-i search from emacs bindings # BEGIN: bindkeys
bindkey "^R" history-incremental-search-backward bindkey "^R" history-incremental-search-backward
bindkey -M viins 'jj' vi-cmd-mode
# END: bindkeys
# export docker env variables # export docker env variables
# re-enable this line when using docker otherwise you will receive # re-enable this line when using docker otherwise you will receive
# a TLS error since docker-machine won't be running # a TLS error since docker-machine won't be running