Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
aspvbs.vim68 linesDownload Raw Back to ftplugin
1" Vim filetype plugin file2" Language:		aspvbs3"4" This runtime file is looking for a new maintainer.5"6" Former maintainer:	Dan Sharp7" Last Change:		2009 Jan 208"			2024 Jan 14 by Vim Project (browsefilter)9 10if exists("b:did_ftplugin") | finish | endif11 12" Make sure the continuation lines below do not cause problems in13" compatibility mode.14let s:save_cpo = &cpo15set cpo-=C16 17" Define some defaults in case the included ftplugins don't set them.18let s:undo_ftplugin = ""19let s:browsefilter = "HTML Files (*.html, *.htm)\t*.htm*\n"20if has("win32")21    let s:browsefilter .= "All Files (*.*)\t*\n"22else23    let s:browsefilter .= "All Files (*)\t*\n"24endif25let s:match_words = ""26 27runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim28let b:did_ftplugin = 129 30" Override our defaults if these were set by an included ftplugin.31if exists("b:undo_ftplugin")32    let s:undo_ftplugin = b:undo_ftplugin33endif34if exists("b:browsefilter")35    let s:browsefilter = b:browsefilter36endif37if exists("b:match_words")38    let s:match_words = b:match_words39endif40 41" ASP:  Active Server Pages (with Visual Basic Script)42" thanks to Gontran BAERTS43if exists("loaded_matchit")44  let s:notend = '\%(\<end\s\+\)\@<!'45  let b:match_ignorecase = 146  let b:match_words =47  \ s:notend . '\<if\>\%(.\{-}then\s\+\w\)\@!:\<elseif\>:^\s*\<else\>:\<end\s\+\<if\>,' .48  \ s:notend . '\<select\s\+case\>:\<case\>:\<case\s\+else\>:\<end\s\+select\>,' .49  \ '^\s*\<sub\>:\<end\s\+sub\>,' .50  \ '^\s*\<function\>:\<end\s\+function\>,' .51  \ '\<class\>:\<end\s\+class\>,' .52  \ '^\s*\<do\>:\<loop\>,' .53  \ '^\s*\<for\>:\<next\>,' .54  \ '\<while\>:\<wend\>,' .55  \ s:match_words56endif57 58" Change the :browse e filter to primarily show ASP-related files.59if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")60    let  b:browsefilter="ASP Files (*.asp)\t*.asp\n" . s:browsefilter61endif62 63let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase b:browsefilter | " . s:undo_ftplugin64 65" Restore the saved compatibility options.66let &cpo = s:save_cpo67unlet s:save_cpo68 
codekingpro/portable-devtools · Team Ai