红联Linux门户
Linux帮助

ubuntu下pythin配置文件

发布时间:2016-08-15 09:03:13来源:linux网站作者:守护生命的绿荷
配置文件代码如下:
#!/bin/bash  
echo "install simple_vim_setting"  
echo "---------------------------------"  
echo "install supporting tools.."  
if which apt-get >/dev/null; then  
sudo apt-get install -y vim ctags xclip astyle python-setuptools python-dev git  
elif which yum >/dev/null; then  
sudo yum install -y gcc vim git ctags xclip astylele python-setuptools python-dev git  
fi
echo "---------------------------------"  
mkdir -p ~/.vim/autoload ~/.vim/bundle && \  
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim  
echo "create .vimrc file"  
curl -LSso ~/.vimrc https://raw.githubusercontent.com/rarezhang/simple_vim_setting/master/vimrc
echo "install vim plugins.."  
cd ~/.vim/  
git init  
git submodule add https://github.com/ervandew/supertab.git bundle/supertab  
git submodule add https://github.com/scrooloose/syntastic.git bundle/syntastic  
git submodule add https://github.com/jiangmiao/auto-pairs.git bundle/auto-pairs  
git submodule add https://github.com/msanders/snipmate.vim.git bundle/snipmate  
git submodule add https://github.com/vim-scripts/The-NERD-tree.git bundle/nerdtree  
git submodule add https://github.com/fholgado/minibufexpl.vim.git bundle/minibufexpl  
git submodule add https://github.com/mbbill/undotree.git bundle/undotree  
git submodule add https://github.com/vim-scripts/taglist.vim.git bundle/taglist  
git submodule add https://github.com/bling/vim-airline.git bundle/vim-airline  
git submodule add https://github.com/altercation/vim-colors-solarized.git bundle/vim-colors-solarized  
git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive  
vim -u NONE -c "helptags vim-fugitive/doc" -c q  
git submodule add https://github.com/davidhalter/jedi-vim.git bundle/jedi-vim  
git submodule add https://github.com/Yggdroot/indentLine.git bundle/indentLine  
git submodule init  
git submodule update  
git submodule foreach git submodule init  
git submodule foreach git submodule update
echo "-----------------------------------------"  
echo "done!"  
 
在ubuntu下保存为.bash文件:
chmod + x XX.bash
./XX.bash
最终vim配置后有todo list代码提示,自动格式等功能,python c++ c等都可以。
ubuntu下pythin配置文件
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23323.html