vim-pep8-text-width


Ⅰ. 插件描述

Vim plugin to set textwidth according to the PEP8 style guide.

Ⅱ. 基本信息

创建日期:  2011-12-09
使用用户:  4
Github星:  4
插件作者:  Jim Fitzpatrick

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jimf/vim-pep8-text-width'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jimf/vim-pep8-text-width'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jimf/vim-pep8-text-width'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/jimf/vim-pep8-text-width

Ⅳ. 文档说明

PEP8 Text Width

This plugin sets textwidth for python files as specified by the PEP8 style guide. Namely, textwidth is set to 79 for code, and 72 for comments.

Inspiration for this plugin from http://stackoverflow.com/questions/4027222/vim-use-shorter-textwidth-in-comments-and-docstrings.

Installation

Use tpope's pathogen.vim.

Requirements

Vim 7.0+

Configuration

The behavior of this plugin can be tweaked by modifying the following
variables:

let g:pep8_text_width = 79           " Default 79
let g:pep8_comment_text_width = 72   " Default 72

License

GPL2+

添加新评论