Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'bkudria/vim-pep8radius'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'bkudria/vim-pep8radius'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'bkudria/vim-pep8radius'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/bkudria/vim-pep8radius
Ⅳ. 文档说明
vim-pep8radius
Vim plugin to auto-format Python code using pep8radius <https://github.com/hayd/pep8radius>_
Usage
Just call the :PEP8radius command, and it will reformat the modified parts of the current python file.
Installation
- Install
pep8radius <https://github.com/hayd/pep8radius>_:
.. code::
pip install pep8radius
- Add the plugin to vim using
Vundle <https://github.com/gmarik/vundle>_ or any other plugin manager, pointing to this repo:
.. code::
Plugin 'bkudria/vim-pep8radius'
(Or if you don't use any plugin manager, you can just copy the python_vimpep8radius.vim file to your .vim/ftplugin folder)