blob: bb851c54916366ff0f63f2fc781e375fea74fc15 [file] [log] [blame]
Bram Moolenaar8d043172014-01-23 14:24:41 +01001" 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
Doug Kearns93197fd2024-01-14 20:59:02 +01005" 2024 Jan 14 by Vim Project (browsefilter)
Bram Moolenaar8d043172014-01-23 14:24:41 +01006
7if exists("b:did_ftplugin")
8 finish
9endif
10let b:did_ftplugin = 1
11
12let s:cpo_save = &cpo
13set cpo&vim
14
15let b:undo_ftplugin =
Bram Moolenaar8d043172014-01-23 14:24:41 +010016 \ 'setlocal ' .
17 \ 'comments< '.
18 \ 'commentstring< ' .
Doug Kearns93197fd2024-01-14 20:59:02 +010019 \ 'formatoptions<'
Bram Moolenaar8d043172014-01-23 14:24:41 +010020
21
Doug Kearns93197fd2024-01-14 20:59:02 +010022if ( has( 'gui_win32' ) || has( 'gui_gtk' ) )
Bram Moolenaar8d043172014-01-23 14:24:41 +010023\ && !exists( 'b:browsefilter' )
24 let b:browsefilter =
Doug Kearns93197fd2024-01-14 20:59:02 +010025 \ "registry files (*.reg)\t*.reg\n"
26 if has("win32")
27 let b:browsefilter .= "All Files (*.*)\t*\n"
28 else
29 let b:browsefilter .= "All Files (*)\t*\n"
30 endif
31 let b:undo_ftplugin .= " | unlet! b:browsefilter"
Bram Moolenaar8d043172014-01-23 14:24:41 +010032endif
33
34setlocal comments=:;
35setlocal commentstring=;\ %s
36
37setlocal formatoptions-=t
38setlocal formatoptions+=croql
39
40let &cpo = s:cpo_save
41unlet s:cpo_save