dosini.vim 370 B

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