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