Merge pull request #24 from CyanSkyTeam/master
add support for archlinux(pacman)
This commit is contained in:
commit
ee0f0bdd92
@ -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基础上扩展。
|
||||
|
||||
17
install.sh
17
install.sh
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user