blob: d83dc3b7977e2cf6ee7397b657b774c516638117 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: MS-DOS .bat files
3" Maintainer: Mike Williams <mrw@eandem.co.uk>
Bram Moolenaard38b0552012-04-25 19:07:41 +02004" Last Change: 24th April 2012
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
6" Only do this when not done yet for this buffer
7if exists("b:did_ftplugin")
8 finish
9endif
10
11" Don't load another plugin for this buffer
12let b:did_ftplugin = 1
13
14" BAT comment formatting
Bram Moolenaar5c736222010-01-06 20:54:52 +010015setlocal comments=b:rem,b:@rem,b:REM,b:@REM,:::
Bram Moolenaar071d4272004-06-13 20:20:40 +000016setlocal formatoptions-=t formatoptions+=rol
17
18" Define patterns for the browse file filter
19if has("gui_win32") && !exists("b:browsefilter")
Bram Moolenaar5c736222010-01-06 20:54:52 +010020 let b:browsefilter = "DOS Batch Files (*.bat, *.cmd)\t*.bat;*.cmd\nAll Files (*.*)\t*.*\n"
Bram Moolenaar071d4272004-06-13 20:20:40 +000021endif
Bram Moolenaard38b0552012-04-25 19:07:41 +020022
Bram Moolenaarddbb5552012-04-26 20:17:03 +020023let b:undo_ftplugin = "setlocal comments< formatoptions< | unlet! b:browsefiler"