python-indent


Ⅰ. 插件描述

Vim indentation for Python

Ⅱ. 基本信息

创建日期:  2014-05-13
使用用户:  2
Github星:  0
插件作者:  Eddie Cao

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'edc/python-indent-safe-and-sound'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'edc/python-indent-safe-and-sound'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'edc/python-indent-safe-and-sound'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/edc/python-indent

Ⅳ. 文档说明

python-indent

Vim indentation for Python that uses both visual and traditional shift indent, adapted from http://www.vim.org/scripts/script.php?script_id=974

As with the origianal indent script, visual indentation is used within open parenthesis. To be compliant with PEP 8 suggestion, this script uses regular shift indentation instead of visual indentation when the open parenthesis ends its line. For example,

box.open("knife",

would trigger the visual indentation on the new line, but

box.open(

would trigger the regular shift indentation.

Installation

With pathogen, just clone this repo into ~/.vim/bunder/. Without pathogen, put the python.vim file under ~/.vim/indent/.

添加新评论