运行下面两个命令,即可把 Vim(含插件)配置成 Python IDE。目前支持 MAC 和 Ubuntu。
Shell
-
curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.sh
-
sudo bash vim.sh
-
curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.sh
-
sudobash vim.sh
截图示例
(点击图片可查看大图)
做了什么
写了个方便的bash脚本,用来配置VIM
使用的配置来自 fisa-vim-config 效果爆炸
附脚本:
- 注意一: 每次运行本脚本,会把旧的 ~/.vimrc 文件备份到 /tmp/vimrc.bak ,并替换原来的 ~/.vimrc 文件 。
- 注意二: 目前支持MAC和Ubuntu系统。
- 脚本存放位置
Shell
-
#!/bin/bash
-
# install fisa vim config
-
-
echo '==============================='
-
echo 'start to install dependences...'
-
case "$OSTYPE" in
-
darwin*) brew install vim git pip curl;;
-
linux*) sudo apt-get install vim exuberant-ctags git pip curl;;
-
*) echo "unknown: OS: $OSTYPE, U should install dependences by yourself" ;;
-
esac
-
sudo pip install dbgp vim-debug pep8 flake8 pyflakes isort
-
-
echo '==============================='
-
echo 'start to download vimrc file...'
-
cp ~/.vimrc /tmp/vimrc.bak
-
curl -O https://raw.githubusercontent.com/fisadev/fisa-vim-config/master/.vimrc
-
mv .vimrc ~/.vimrc
-
-
echo '==============================='
-
echo 'start to install vim plugins...'
-
vim +BundleClean +BundleInstall! +qa
-
-
sudo chown -R $USER ~/.vim/
-
#!/bin/bash
-
# install fisa vim config
-
-
echo '==============================='
-
echo 'start to install dependences...'
-
case "$OSTYPE" in
-
darwin*) brewinstallvim gitpipcurl;;
-
linux*) sudoapt-get installvim exuberant-ctags gitpipcurl;;
-
*) echo "unknown: OS: $OSTYPE, U should install dependences by yourself" ;;
-
esac
-
sudopipinstalldbgpvim-debugpep8flake8pyflakesisort
-
-
echo '==============================='
-
echo 'start to download vimrc file...'
-
cp ~/.vimrc /tmp/vimrc.bak
-
curl -O https://raw.githubusercontent.com/fisadev/fisa-vim-config/master/.vimrc
-
mv .vimrc ~/.vimrc
-
-
echo '==============================='
-
echo 'start to install vim plugins...'
-
vim +BundleClean +BundleInstall! +qa
-
-
sudochown -R $USER ~/.vim/
来自: http://python.jobbole.com/84166/
参考:https://blog.csdn.net/yaoxiaokui/article/details/49153179