AutoFold.vim


Ⅰ. 插件描述

A script to automate folding based on markers and syntax.

Ⅱ. 基本信息

创建日期:  2004-02-28
使用用户:  2
Github星:  1
插件作者:  Dave Vehrs

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This script is an attempt at merging syntax and marker based folding.  

Folding based on markers is available for all filetypes.  Currently both the {{{ / }}} and the {{{# / }}}# (where # designates the fold level) marking types are supported.

Syntax folding is currently only available for C, Perl, Python, Shell, and Vim filetypes.

Includes function to check and update the foldmarker and line break formats just before saving the file.

As of version 1.3, includes functions to insert (zf) and remove (zd) fold markers that behave similarly to those in the marker fold method.

添加新评论