Skip to content

Commit

Permalink
Merge pull request chxuan#24 from CyanSkyTeam/master
Browse files Browse the repository at this point in the history
add support for archlinux(pacman)
  • Loading branch information
chxuan authored Jan 1, 2018
2 parents 485a626 + bf4e208 commit ee0f0bd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ Q & A

这里的原因可能就有很多了,可能每个人遇到的问题不一样,但`vimplus`尽最大努力不让用户操心,需要注意的是ycm插件只支持`64`位的系统,更多信息请访问[ycm官网][38]。

- **`在Archlinux环境下不能使用ycm怎么办?(缺少libtinfo.so.5)`**

在Archlinux下可以试着使用pkgfile命令搜索依赖的文件具体在什么包内,目前找到的包含libtinfo.so.5的包是ncurses5-compat-libs(AUR)或者32位的lib32-ncurses5-compat-libs(AUR),安装后即可正常使用。

- **`使用vimplus为什么不能补全JS、Go、Java等语言?`**

目前vimplus只支持C、C++、Shell、vimscript、Python等语言补全,后序会支持更多的语言,若您真的需要使用其他语言,您可以在vimplus基础上扩展。
Expand Down
17 changes: 17 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ function get_linux_platform_type()
echo "ubuntu" # debian ubuntu系列
elif which yum > /dev/null ; then
echo "centos" # centos redhat系列
elif which pacman > /dev/null; then
echo "archlinux" # archlinux系列
else
echo "invaild"
fi
Expand Down Expand Up @@ -84,6 +86,12 @@ function install_prepare_software_on_ubuntu()
fi
}

# 安装archlinux发行版必要软件
function install_prepare_software_on_archlinux()
{
sudo pacman -S --noconfirm vim ctags automake gcc cmake python3 python2
}

# 拷贝文件
function copy_files()
{
Expand Down Expand Up @@ -230,6 +238,13 @@ function install_vimplus_on_centos()
begin_install_vimplus
}

# 在archlinux发行版安装vimplus
function install_vimplus_on_archlinux()
{
install_prepare_software_on_archlinux
begin_install_vimplus
}

# 在linux平台安装vimplus
function install_vimplus_on_linux()
{
Expand All @@ -240,6 +255,8 @@ function install_vimplus_on_linux()
install_vimplus_on_ubuntu
elif [ ${type} == "centos" ]; then
install_vimplus_on_centos
elif [ ${type} == "archlinux" ]; then
install_vimplus_on_archlinux
else
echo "not support this linux platform type: "${type}
fi
Expand Down

0 comments on commit ee0f0bd

Please sign in to comment.