registry.vim 740 B

12345678910111213141516171819202122232425262728293031323334353637
  1. " Vim filetype plugin file
  2. " Language: Windows Registry export with regedit (*.reg)
  3. " Maintainer: Cade Forester <ahx2323@gmail.com>
  4. " Latest Revision: 2014-01-09
  5. if exists("b:did_ftplugin")
  6. finish
  7. endif
  8. let b:did_ftplugin = 1
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. let b:undo_ftplugin =
  12. \ 'let b:browsefilter = "" | ' .
  13. \ 'setlocal ' .
  14. \ 'comments< '.
  15. \ 'commentstring< ' .
  16. \ 'formatoptions< '
  17. if has( 'gui_win32' )
  18. \ && !exists( 'b:browsefilter' )
  19. let b:browsefilter =
  20. \ 'registry files (*.reg)\t*.reg\n' .
  21. \ 'All files (*.*)\t*.*\n'
  22. endif
  23. setlocal comments=:;
  24. setlocal commentstring=;\ %s
  25. setlocal formatoptions-=t
  26. setlocal formatoptions+=croql
  27. let &cpo = s:cpo_save
  28. unlet s:cpo_save