Home > Backend Development > Python Tutorial > 两个命令把 Vim 打造成 Python IDE的方法

两个命令把 Vim 打造成 Python IDE的方法

WBOY
Release: 2016-06-10 15:05:36
Original
1390 people have browsed it

运行下面两个命令,即可把 Vim(含插件)配置成 Python IDE。目前支持 MAC 和 Ubuntu。

curl -O https://raw.githubusercontent.com/vince67/v7_config/master/vim.sh
bash vim.sh
Copy after login

截图示例

做了什么

写了个方便的bash脚本,用来配置VIM

使用的配置来自 fisa-vim-config 效果爆炸

附脚本:
•注意一: 每次运行本脚本,会把旧的 ~/.vimrc 文件备份到 /tmp/vimrc.bak ,并替换原来的 ~/.vimrc 文件 。
•注意二: 目前支持MAC和Ubuntu系统。
•脚本存放位置

  #!/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/
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template