1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-24 18:55:11 +01:00
vim/runtime/ftplugin/dosbatch.vim

24 lines
695 B
VimL
Raw Normal View History

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
let b:undo_ftplugin = "setlocal comments< formatoptions< | unlet! b:browsefiler"