vim-auto-origami
vim-auto-origami copied to clipboard
Automatically set vim's 'foldcolumn' when folds present
vim-auto-origami
Automatically set vim's 'foldcolumn' when folds present
Check it out on vim.org too.
Installation
I recommend using Pathogen for managing plugins.
Then it's just a quick
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
augroup autofoldcolumn
au!
" Or whatever autocmd-events you want
au CursorHold,BufWinEnter,WinEnter * AutoOrigamiFoldColumn
augroup END
Usage
Check out the docs (:help auto-origami).