Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
dosbatch.vim55 linesDownload Raw Back to ftplugin
1" Vim filetype plugin file2" Language:    MS-DOS/Windows .bat files3" Maintainer:  Mike Williams <mrmrdubya@gmail.com>4" Last Change: 12th February 20235"              2024 Jan 14 by Vim Project (browsefilter)6"7" Options Flags:8" dosbatch_colons_comment       - any value to treat :: as comment line9 10" Only do this when not done yet for this buffer11if exists("b:did_ftplugin")12  finish13endif14 15" Don't load another plugin for this buffer16let b:did_ftplugin = 117 18let s:cpo_save = &cpo19set cpo&vim20 21" BAT comment formatting22setlocal comments=b:rem,b:@rem,b:REM,b:@REM23if exists("dosbatch_colons_comment")24  setlocal comments+=:::25  setlocal commentstring=::\ %s26else27  setlocal commentstring=REM\ %s28endif29setlocal formatoptions-=t formatoptions+=rol30 31" Lookup DOS keywords using Windows command help.32if executable('help.exe')33  if has('terminal')34    setlocal keywordprg=:term\ help.exe35  else36    setlocal keywordprg=help.exe37  endif38endif39 40" Define patterns for the browse file filter41if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")42  let b:browsefilter = "DOS Batch Files (*.bat, *.cmd)\t*.bat;*.cmd\n"43  if has("win32")44    let b:browsefilter ..= "All Files (*.*)\t*\n"45  else46    let b:browsefilter ..= "All Files (*)\t*\n"47  endif48endif49 50let b:undo_ftplugin = "setlocal comments< formatoptions< keywordprg<"51    \ . "| unlet! b:browsefilter"52 53let &cpo = s:cpo_save54unlet s:cpo_save55 
codekingpro/portable-devtools · Team Ai