2004-06-13 20:20:40 +00:00
|
|
|
" Vim filetype plugin file
|
|
|
|
" Language: MS-DOS .bat files
|
|
|
|
" Maintainer: Mike Williams <mrw@eandem.co.uk>
|
2012-04-25 19:07:41 +02:00
|
|
|
" Last Change: 24th April 2012
|
2004-06-13 20:20:40 +00:00
|
|
|
|
|
|
|
" Only do this when not done yet for this buffer
|
|
|
|
if exists("b:did_ftplugin")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
" Don't load another plugin for this buffer
|
|
|
|
let b:did_ftplugin = 1
|
|
|
|
|
|
|
|
" BAT comment formatting
|
2010-01-06 20:54:52 +01:00
|
|
|
setlocal comments=b:rem,b:@rem,b:REM,b:@REM,:::
|
2004-06-13 20:20:40 +00:00
|
|
|
setlocal formatoptions-=t formatoptions+=rol
|
|
|
|
|
|
|
|
" Define patterns for the browse file filter
|
|
|
|
if has("gui_win32") && !exists("b:browsefilter")
|
2010-01-06 20:54:52 +01:00
|
|
|
let b:browsefilter = "DOS Batch Files (*.bat, *.cmd)\t*.bat;*.cmd\nAll Files (*.*)\t*.*\n"
|
2004-06-13 20:20:40 +00:00
|
|
|
endif
|
2012-04-25 19:07:41 +02:00
|
|
|
|
2012-04-26 20:17:03 +02:00
|
|
|
let b:undo_ftplugin = "setlocal comments< formatoptions< | unlet! b:browsefiler"
|