fix vim alias
This commit is contained in:
parent
b078daa648
commit
b992f92516
1 changed files with 4 additions and 7 deletions
11
zshrc
11
zshrc
|
@ -153,7 +153,6 @@ alias rgrep='command grep --exclude-dir=\.git -R'
|
||||||
alias ggrep='command git grep'
|
alias ggrep='command git grep'
|
||||||
alias tailf='command less -R +F'
|
alias tailf='command less -R +F'
|
||||||
alias diff='command diff --color'
|
alias diff='command diff --color'
|
||||||
alias vi='command vim'
|
|
||||||
|
|
||||||
# ls
|
# ls
|
||||||
alias ls='command ls --color=auto --group-directories-first '
|
alias ls='command ls --color=auto --group-directories-first '
|
||||||
|
@ -174,6 +173,10 @@ alias atmux='command tmux -2 attach'
|
||||||
# screen
|
# screen
|
||||||
alias rscreen='command screen -Dr'
|
alias rscreen='command screen -Dr'
|
||||||
alias scr='command screen sudo -Es'
|
alias scr='command screen sudo -Es'
|
||||||
|
|
||||||
|
# neovim over vim
|
||||||
|
[[ -x $(whence nvim) ]] && alias vim='command nvim'
|
||||||
|
alias vi='vim'
|
||||||
# }}}
|
# }}}
|
||||||
# {{{ plugins
|
# {{{ plugins
|
||||||
# colors
|
# colors
|
||||||
|
@ -239,10 +242,4 @@ s() {
|
||||||
tempterm=${TERM%%-256color}
|
tempterm=${TERM%%-256color}
|
||||||
TERM=${TERMS[$tempterm]-$tempterm} $ssh "$@"
|
TERM=${TERMS[$tempterm]-$tempterm} $ssh "$@"
|
||||||
}
|
}
|
||||||
# prefer neovim over vim
|
|
||||||
vim() {
|
|
||||||
local vim
|
|
||||||
vim=$(whence nvim) || vim=$(whence vim)
|
|
||||||
$vim "$@"
|
|
||||||
}
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue