Merge pull request #24 from CyanSkyTeam/master

add support for archlinux(pacman)
This commit is contained in:
chxuan 2018-01-01 21:21:42 +08:00 committed by GitHub
commit ee0f0bdd92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -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基础上扩展。

View File

@ -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
@ -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()
{
@ -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()
{
@ -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