| @@ -68,17 +68,26 @@ do | |||||
| done | done | ||||
| test -n "$_src_hilite_lp_path" && export LESSOPEN="| $_src_hilite_lp_path %s" | test -n "$_src_hilite_lp_path" && export LESSOPEN="| $_src_hilite_lp_path %s" | ||||
| if which vim >/dev/null | |||||
| if which nvim >/dev/null | |||||
| then | then | ||||
| export EDITOR=vim | |||||
| else | |||||
| export EDITOR=vi | |||||
| _VI_ALT=nvim | |||||
| elif which vim >/dev/null | |||||
| then | |||||
| _VI_ALT=vim | |||||
| elif which vi >/dev/null | |||||
| then | |||||
| _VI_ALT=vi | |||||
| fi | fi | ||||
| # export CDPATH=".:~" | |||||
| export VISUAL="$EDITOR" | |||||
| if test -n "$_VI_ALT" | |||||
| then | |||||
| export EDITOR="$_VI_ALT" | |||||
| export GIT_EDITOR="$EDITOR" | |||||
| export VISUAL="$EDITOR" | |||||
| fi | |||||
| # export CDPATH=".:~" | |||||
| export GIT_PAGER="less -F" | export GIT_PAGER="less -F" | ||||
| export GIT_EDITOR="$EDITOR" | |||||
| export GIT_MERGE_AUTOEDIT=no | export GIT_MERGE_AUTOEDIT=no | ||||
| if test -n "$TMUX" && \ | if test -n "$TMUX" && \ | ||||
| @@ -275,17 +275,11 @@ _timeformat_rfc2822="%a, %d %b %Y %T %z" | |||||
| _timeformat_num="%Y%m%d%H%M%S" | _timeformat_num="%Y%m%d%H%M%S" | ||||
| alias datenum="date +$_timeformat_num" | alias datenum="date +$_timeformat_num" | ||||
| if null type nvim | |||||
| if test -n "$_VI_ALT" | |||||
| then | then | ||||
| export EDITOR=nvim | |||||
| elif null type vim | |||||
| then | |||||
| export EDITOR=vim | |||||
| elif null type vi | |||||
| then | |||||
| export EDITOR=vi | |||||
| alias vi=$_VI_ALT | |||||
| export EDITOR=$_VI_ALT | |||||
| fi | fi | ||||
| test -n "$EDITOR" && alias vi=$EDITOR | |||||
| # export GREP_OPTIONS="" | # export GREP_OPTIONS="" | ||||
| alias gr="grep -n --color=always" | alias gr="grep -n --color=always" | ||||