运行下面两个命令,即可把 Vim(含插件)配置成 Python IDE。目前支持 MAC 和 Ubuntu。
curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.sh bash vim.sh
截图示例
做了什么
写了个方便的bash脚本,用来配置VIM
使用的配置来自 fisa-vim-config 效果爆炸
附脚本:
"_blank" href="https://raw.githubusercontent.com/vince67/v7_config/master/vim.sh">脚本存放位置
#!/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/