[zsh] add alias for opening current Vim session

This commit is contained in:
Dmytro Meleshko 2019-11-24 11:55:58 +02:00
parent 95d44a7e04
commit 509f39abaa
2 changed files with 7 additions and 2 deletions

View file

@ -61,3 +61,10 @@ alias df='df -h'
alias free='free -h'
alias apt-get="echo -e \"use 'apt' instead of 'apt-get'\nif you really want to use 'apt-get', type '"'\\\\'"apt-get'\" #"
# editor
alias edit="$EDITOR"
alias e="$EDITOR"
if [[ "$EDITOR" == *vim ]]; then
alias es="e -S"
fi

View file

@ -3,8 +3,6 @@
# find editor
export EDITOR="nvim"
export VISUAL="$EDITOR"
alias edit="$EDITOR"
alias e="$EDITOR"
export PAGER='less'
export LESS='--RAW-CONTROL-CHARS'