1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-23 01:09:56 +08:00

Fix vim81 checking

close #2140
This commit is contained in:
Shidong Wang 2019-01-26 11:14:25 +08:00
parent dcecba8ea0
commit 56e39b40e2
2 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ check_requirements () {
warn "缺少依赖git" warn "缺少依赖git"
fi fi
if hash "vim" &>/dev/null; then if hash "vim" &>/dev/null; then
is_vim8=$(vim --version | grep "Vi IMproved 8.0") is_vim8=$(vim --version | grep "Vi IMproved 8")
is_vim74=$(vim --version | grep "Vi IMproved 7.4") is_vim74=$(vim --version | grep "Vi IMproved 7.4")
if [ -n "$is_vim8" ]; then if [ -n "$is_vim8" ]; then
success "检测到 Vim 版本: vim 8.0" success "检测到 Vim 版本: vim 8.0"

View File

@ -240,7 +240,7 @@ check_requirements () {
warn "Check Requirements : git" warn "Check Requirements : git"
fi fi
if hash "vim" &>/dev/null; then if hash "vim" &>/dev/null; then
is_vim8=$(vim --version | grep "Vi IMproved 8.0") is_vim8=$(vim --version | grep "Vi IMproved 8")
is_vim74=$(vim --version | grep "Vi IMproved 7.4") is_vim74=$(vim --version | grep "Vi IMproved 7.4")
if [ -n "$is_vim8" ]; then if [ -n "$is_vim8" ]; then
success "Check Requirements: vim 8.0" success "Check Requirements: vim 8.0"