Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/arecarn/vim-fold-cycle


https://github.com/arecarn/vim-fold-cycle

Last synced: 10 days ago
JSON representation

Lists

README

        

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 | `` map | Description |
| ------ | ----------- | -------------------------- | ------------------------ |
| normal | \ | `(fold-cycle-open)` | Cycle open nested folds |
| normal | \ | `(fold-cycle-close)` | Cycle close nested folds |

Demo
----
![clean fold demo](https://cloud.githubusercontent.com/assets/2142684/7664231/d57b6300-fb32-11e4-9b34-e73ac9099e77.gif)

Customization
-------------
Example:
```vim
let g:fold_cycle_default_mapping = 0 "disable default mappings
nmap (fold-cycle-open)
nmap (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

```