robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Christian Clasonvim-patch:93197fde0f1d7ed6966023

master
944 B41 linesraw
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
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 =
16  \ 'setlocal ' .
17  \    'comments< '.
18  \    'commentstring< ' .
19  \    'formatoptions<'
20
21
22if ( 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"
32endif
33
34setlocal comments=:;
35setlocal commentstring=;\ %s
36
37setlocal formatoptions-=t
38setlocal formatoptions+=croql
39
40let &cpo = s:cpo_save
41unlet s:cpo_save