Home

Awesome

Fold Cycling

This plugin provides the ability to cycle open and closed folds and nested folds. 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)

" Won't close when max fold is opened
let g:fold_cycle_toggle_max_open  = 0
" Won't open when max fold is closed
let g:fold_cycle_toggle_max_close = 0