registry.vim (944B)
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 7 if exists("b:did_ftplugin") 8 finish 9 endif 10 let b:did_ftplugin = 1 11 12 let s:cpo_save = &cpo 13 set cpo&vim 14 15 let b:undo_ftplugin = 16 \ 'setlocal ' . 17 \ 'comments< '. 18 \ 'commentstring< ' . 19 \ 'formatoptions<' 20 21 22 if ( has( 'gui_win32' ) || has( 'gui_gtk' ) ) 23 \ && !exists( 'b:browsefilter' ) 24 let b:browsefilter = 25 \ "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" 32 endif 33 34 setlocal comments=:; 35 setlocal commentstring=;\ %s 36 37 setlocal formatoptions-=t 38 setlocal formatoptions+=croql 39 40 let &cpo = s:cpo_save 41 unlet s:cpo_save