https://github.com/benknoble/vim-auto-origami
Automatically set vim's 'foldcolumn' when folds present
https://github.com/benknoble/vim-auto-origami
vim vim-auto-origami vim-plugin
Last synced: 8 months ago
JSON representation
Automatically set vim's 'foldcolumn' when folds present
- Host: GitHub
- URL: https://github.com/benknoble/vim-auto-origami
- Owner: benknoble
- License: mit
- Created: 2017-08-26T19:28:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T13:46:45.000Z (almost 4 years ago)
- Last Synced: 2025-04-18T09:34:28.790Z (about 1 year ago)
- Topics: vim, vim-auto-origami, vim-plugin
- Language: Vim script
- Homepage:
- Size: 27.3 KB
- Stars: 19
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-auto-origami
[](https://benknoble.github.io/status/finished/)
Automatically set vim's 'foldcolumn' when folds present
Check it out on [vim.org](http://www.vim.org/scripts/script.php?script_id=5601)
too.
## Installation
I recommend using [Pathogen](https://github.com/tpope/vim-pathogen) for managing
plugins.
Then it's just a quick
```bash
cd ~/.vim/bundle
git clone https://github.com/benknoble/vim-auto-origami.git
```
## Quickstart
Drop the following in your vimrc, and open a file with some folds
```vim
augroup autofoldcolumn
au!
" Or whatever autocmd-events you want
au CursorHold,BufWinEnter,WinEnter * AutoOrigamiFoldColumn
augroup END
```
## Usage
Check out the docs (`:help auto-origami`).