1 Star 1 Fork 1

zhukwxy / yvim.git

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
debinst.sh 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
zhukwxy 提交于 2023-12-29 17:32 . init
#!/bin/bash
curDir=`pwd`
user=`whoami`
if [ "${user}" != "root" ] ; then
echo "debian use root env"
exit 1
fi
#下载git
#{{{
existGit=`which git`
if [ -z "$existGit" ] ; then
apt-get install git -y
fi
#}}}
#下载自动不全
apt-get install bash-completion
#下载依赖
#{{{
apt-get install python3 python3-dev cmake build-essential -y
apt-get install exuberant-ctags cscope nodejs node-util libncurses-dev libx11-dev libxt-dev -y
#支持交叉编译
apt-get install gcc-multilib g++-multilib -y
#}}}
#安装vim配置
#{{{
cp ./dpkg.vimrc ~/.vimrc
cp vim ~/.vim -rf
chmod 777 ~/.vim/cscope/*
#}}}
#安装YCM
#{{{
cd ~/.vim/plugged
cat YouCompleteMe.tar.gza* | tar -xvz
cd ~/.vim/plugged/YouCompleteMe
./install.py --clangd-completer
#}}}
#安装vim
#{{{
apt autoremove vim -y
tar -xzvf $curDir/src/vim-8.2.0695.tar.gz -C $curDir/src
cd $curDir/src/vim-8.2.0695
./configure --with-features=huge \
--enable-rubyinterp=yes \
--enable-python3interp=yes \
--enable-luainterp=yes \
--enable-multibyte \
--with-python-command=python2 \
--with-python3-command=python3 \
--enable-cscope \
--enable-gtk2-check \
--enable-gnome-check \
--enable-gtk3-check \
--enable-motif-check \
--prefix=/usr \
--with-x \
--enable-largefile
# --with-python3-config-dir=/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/
make CFLAGS="-O2 -D_FORTIFY_SOURCE=1" -j4
make install
rm -rf $curDir/src/vim-8.2.0695
#}}}
#安装qtcreator
#{{{
#sudo apt-get install qt5-default qtcreator gdb -y
#sudo apt-get install manpages-dev manpages-posix manpages-posix-dev manpages
#}}}
#安装cmake帮助手册
#{{{
#cd $curDir
#sudo cp ./resources/dpkg/CMake.qch /usr/share/qtcreator/doc
#assistant -register /usr/share/qtcreator/doc/CMake.qch
#cp ./resources/dpkg/org.qt-project.assistant.desktop ~/Desktop
#}}}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhukwxy/yvim.git
git@gitee.com:zhukwxy/yvim.git
zhukwxy
yvim
yvim.git
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891