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: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arecarn/vim-fold-cycle
- Owner: arecarn
- Created: 2015-05-22T15:05:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T15:50:02.000Z (over 4 years ago)
- Last Synced: 2024-06-18T10:34:29.970Z (3 months ago)
- Language: Vim script
- Size: 57.6 KB
- Stars: 71
- Watchers: 8
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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```