Skip to content

arecarn/vim-fold-cycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Mode Default Key <Plug> map Description
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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages