Ⅰ. 插件描述
Fold your Python docstringsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'yhat/vim-docstring'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'yhat/vim-docstring'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'yhat/vim-docstring'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/yhat/vim-docstring
Ⅳ. 文档说明
#vim-docstring
Python docstrings are great for helping others, but are sometimes too verbose
for a developer. Fold them with ease with this vim plugin.

Install
If you use pathogen just clone to your bundle.
cd ~/.vim/bundle
git clone git@github.com:yhat/vim-docstringIf not, just stick ftplugin/python.vim in your
.vim/ftplugin directory somewhere.
Usage
This vim plugin defines exactly one command which you can auto-load by adding
the following to your .vimrc.
autocmd FileType python PyDocHideUse the following vim commands to manipulate the folded docstrings.
za: Toggle current fold.zo: Open the current fold.zc: Close the current fold.
See more help on the vim wiki.
To manually redraw the folds use the command :PyDocHide