registry.vim 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. " 2024 Jan 14 by Vim Project (browsefilter)
  6. if exists("b:did_ftplugin")
  7. finish
  8. endif
  9. let b:did_ftplugin = 1
  10. let s:cpo_save = &cpo
  11. set cpo&vim
  12. let b:undo_ftplugin =
  13. \ 'setlocal ' .
  14. \ 'comments< '.
  15. \ 'commentstring< ' .
  16. \ 'formatoptions<'
  17. if ( has( 'gui_win32' ) || has( 'gui_gtk' ) )
  18. \ && !exists( 'b:browsefilter' )
  19. let b:browsefilter =
  20. \ "registry files (*.reg)\t*.reg\n"
  21. if has("win32")
  22. let b:browsefilter .= "All Files (*.*)\t*\n"
  23. else
  24. let b:browsefilter .= "All Files (*)\t*\n"
  25. endif
  26. let b:undo_ftplugin .= " | unlet! b:browsefilter"
  27. endif
  28. setlocal comments=:;
  29. setlocal commentstring=;\ %s
  30. setlocal formatoptions-=t
  31. setlocal formatoptions+=croql
  32. let &cpo = s:cpo_save
  33. unlet s:cpo_save