vim-fold-cycle


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2015-01-29
使用用户:  21
Github星:  52
插件作者:  Ryan Carney

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Fold Cycling

This plugin provides the ability to cycle open and closed folds and nested

  1. It could also be described as a type of visibility cycling similar to
    Emacs org-mode.

Usage

ModeDefault Key<Plug> mapDescription
normal<CR><Plug>(fold-cycle-open)Cycle open nested folds
normal<BS><Plug>(fold-cycle-close)Cycle close nested folds

Demo

clean fold demo

Customization

Example:

let g:fold_cycle_default_mapping = 0 "disable default mappings
nmap <Tab><Tab> <Plug>(fold-cycle-open)
nmap <S-Tab><S-Tab> <Plug>(fold-cycle-close)

添加新评论