Bram Moolenaar | 8d04317 | 2014-01-23 14:24:41 +0100 | [diff] [blame] | 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 | |
| 6 | if exists("b:did_ftplugin") |
| 7 | finish |
| 8 | endif |
| 9 | let b:did_ftplugin = 1 |
| 10 | |
| 11 | let s:cpo_save = &cpo |
| 12 | set cpo&vim |
| 13 | |
| 14 | let b:undo_ftplugin = |
| 15 | \ 'let b:browsefilter = "" | ' . |
| 16 | \ 'setlocal ' . |
| 17 | \ 'comments< '. |
| 18 | \ 'commentstring< ' . |
| 19 | \ 'formatoptions< ' |
| 20 | |
| 21 | |
| 22 | if has( 'gui_win32' ) |
| 23 | \ && !exists( 'b:browsefilter' ) |
| 24 | let b:browsefilter = |
| 25 | \ 'registry files (*.reg)\t*.reg\n' . |
| 26 | \ 'All files (*.*)\t*.*\n' |
| 27 | endif |
| 28 | |
| 29 | setlocal comments=:; |
| 30 | setlocal commentstring=;\ %s |
| 31 | |
| 32 | setlocal formatoptions-=t |
| 33 | setlocal formatoptions+=croql |
| 34 | |
| 35 | let &cpo = s:cpo_save |
| 36 | unlet s:cpo_save |