indentfolds


Ⅰ. 插件描述

Indentation-level based folds with a twist

Ⅱ. 基本信息

创建日期:  2011-10-21
使用用户:  3
Github星:  4
插件作者:  Tom Link

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tomtom/indentfolds'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tomtom/indentfolds'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tomtom/indentfolds'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tomtom/indentfolds_vim

Ⅳ. 文档说明

When I write a longer text, I tend to use a top-down approach. I begin
with writing down the headings. I then outline each section. Next, I write
down keywords for each paragraph etc. At each step, I increase the
indentation level (multiples of 'shiftwidth', see also 'fold-indent').

This plugin help maintaining an overview of the document by setting a
paragraph's 'foldlevel' based on its indentation level -- see
|:Indentfolds|. Other than vim's own 'fold-indent' method, any
indentation level can be assigned as the top fold level. E.g. text with
a prefix of 16 whitespace characters can be defined as level 1, 8 and 24
whitespace characters would then be at level 2 etc. By setting foldlevel=1,
only text at that indentation level is displayed.

This plugin also provides a helper-command to comment out or delete all
lines at higher fold levels -- see |:IndentfoldsComment|.

Users can also use key maps (default: <tab>, <s-tab>) to cycle through
indentation levels.


Status: Experimental
Install: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT
See http://github.com/tomtom for related plugins.

添加新评论