1 Star 15 Fork 6

少林码僧/vimplus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
install.sh 2.26 KB
一键复制 编辑 原始数据 按行查看 历史
少林码僧 提交于 2017-05-13 11:35 . 添加ycm插件包
#!/bin/bash
if which apt-get > /dev/null
then
sudo apt-get install -y ctags build-essential cmake python-dev python3-dev fontconfig git
var=$(sudo cat /etc/lsb-release | grep "DISTRIB_RELEASE")
systemVersion='DISTRIB_RELEASE=16.04'
if [ $var == $systemVersion ]
then
sudo apt-get install -y libncurses5-dev libgnome2-dev libgnomeui-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev python3-dev ruby-dev lua5.1 lua5.1-dev
sudo apt-get remove -y vim vim-runtime gvim
sudo apt-get remove -y vim-tiny vim-common vim-gui-common vim-nox
sudo rm -rf ~/vim
sudo rm -rf /usr/share/vim/vim74
sudo rm -rf /usr/share/vim/vim80
git clone https://github.com/vim/vim.git ~/vim
cd ~/vim
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-perlinterp \
--enable-luainterp \
--enable-gui=gtk2 --enable-cscope --prefix=/usr
make VIMRUNTIMEDIR=/usr/share/vim/vim80
sudo make install
cd -
else
sudo apt-get install -y vim
fi
elif which yum > /dev/null
then
sudo yum install -y vim ctags automake gcc gcc-c++ kernel-devel cmake python-devel python3-devel git
fi
sudo rm -rf ~/.vimrc
sudo rm -rf ~/.ycm_extra_conf.py
cp .vimrc ~
cp .ycm_extra_conf.py ~
mkdir ~/.vim
sudo rm -rf ~/.vim/plugin
sudo rm -rf ~/.vim/colors
cp -R ./plugin ~/.vim
cp -R ./colors ~/.vim
mkdir ~/.fonts
sudo rm -rf ~/.fonts/PowerlineSymbols.otf
sudo rm -rf ~/.fonts/Droid\ Sans\ Mono\ for\ Powerline\ Nerd\ Font\ Complete.otf
cp ./fonts/PowerlineSymbols.otf ~/.fonts
cp ./fonts/Droid\ Sans\ Mono\ for\ Powerline\ Nerd\ Font\ Complete.otf ~/.fonts
fc-cache -vf ~/.fonts
mkdir -p ~/.config/fontconfig/conf.d
sudo rm -rf ~/.config/fontconfig/conf.d/10-powerline-symbols.conf
cp ./fonts/10-powerline-symbols.conf ~/.config/fontconfig/conf.d
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim -c "PluginInstall" -c "q" -c "q"
cd ~/.vim/bundle/YouCompleteMe
sudo ./install.py --clang-completer
echo "Done!"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phper95/vimplus.git
git@gitee.com:phper95/vimplus.git
phper95
vimplus
vimplus
master

搜索帮助