polybar-dwm/contrib/vim/ftplugin/dosini.vim
Michael Carlberg dfbed32287 git: Vim files
2016-10-29 16:41:29 +02:00

12 lines
370 B
VimL

"
" Enables syntax folding for the configuration file.
" Removes the need to clutter the file with fold markers.
"
" Put the file in $VIM/after/syntax/dosini.vim
"
syn region dosiniSection start="^\[" end="\(\n\+\[\)\@=" contains=dosiniLabel,dosiniHeader,dosiniComment keepend fold
setlocal foldmethod=syntax
" Uncomment to start with folds open
"setlocal foldlevel=20