簡簡單單把vim打造成python的IDE

fpkoko發表於2017-12-14

說起來vim的IDE,大家都會推薦pycharm.這款軟體確實是一款不錯的IDE,但是很多人還是喜歡vim,加上各種外掛,用起來也是超爽的.但是配置過程卻是比較麻煩,複雜.現在有比較簡單的方法,只需要兩行程式碼.廢話不說,直接上程式碼

curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.sh
bash vim.sh
複製程式碼

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 $USER ~/.vim/
echo 'down! enjoy it!'
複製程式碼

相關文章