home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / ftplugin / aspvbs.vim < prev    next >
Encoding:
Text File  |  2003-04-25  |  1.1 KB  |  33 lines

  1. " Vim filetype plugin file
  2. " Language:    aspvbs
  3. " Maintainer:    Dan Sharp <dwsharp at hotmail dot com>
  4. " Last Changed: 2002 Nov 26
  5. " URL:        http://mywebpage.netscape.com/sharppeople/vim/ftplugin
  6.  
  7. if exists("b:did_ftplugin") | finish | endif
  8.  
  9. runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
  10.  
  11. " ASP:  Active Server Pages (with Visual Basic Script)
  12. " thanks to Gontran BAERTS
  13. if exists("loaded_matchit") && exists("b:match_words")
  14.   let s:notend = '\%(\<end\s\+\)\@<!'
  15.   let b:match_words =
  16.   \ s:notend . '\<If\>:^\s\+\<Else\>:\<ElseIf\>:\<end\s\+\<if\>,' .
  17.   \ s:notend . '\<Select\s\+\<Case\>:\<Case\>:\<Case\s\+\<Else\>:\<End\s\+\<Select\>,' .
  18.   \ '^\s*\<Sub\>:\<End\s\+\<Sub\>,' .
  19.   \ '^\s*\<Function\>:\<End\s\+\<Function\>,' .
  20.   \ '\<Class\>:\<End\s\+\<Class\>,' .
  21.   \ '^\s*\<Do\>:\<Loop\>,' .
  22.   \ '^\s*\<For\>:\<Next\>,' .
  23.   \ '\<While\>:\<Wend\>,' .
  24.   \ b:match_words
  25. endif
  26.  
  27. let b:did_ftplugin = 1
  28.  
  29. " Change the :browse e filter to primarily show ASP-related files.
  30. if has("gui_win32") && exists("b:browsefilter")
  31.     let  b:browsefilter="ASP Files (*.asp)\t*.asp\n" . b:browsefilter
  32. endif
  33.