1
0
Fork 0

fix vim alias

This commit is contained in:
Von Random 2018-07-04 20:01:34 +03:00
parent b078daa648
commit b992f92516

11
zshrc
View file

@ -153,7 +153,6 @@ alias rgrep='command grep --exclude-dir=\.git -R'
alias ggrep='command git grep'
alias tailf='command less -R +F'
alias diff='command diff --color'
alias vi='command vim'
# ls
alias ls='command ls --color=auto --group-directories-first '
@ -174,6 +173,10 @@ alias atmux='command tmux -2 attach'
# screen
alias rscreen='command screen -Dr'
alias scr='command screen sudo -Es'
# neovim over vim
[[ -x $(whence nvim) ]] && alias vim='command nvim'
alias vi='vim'
# }}}
# {{{ plugins
# colors
@ -239,10 +242,4 @@ s() {
tempterm=${TERM%%-256color}
TERM=${TERMS[$tempterm]-$tempterm} $ssh "$@"
}
# prefer neovim over vim
vim() {
local vim
vim=$(whence nvim) || vim=$(whence vim)
$vim "$@"
}
# }}}