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 / html.vim < prev    next >
Encoding:
Text File  |  2003-04-16  |  906 b   |  28 lines

  1. " Vim filetype plugin file
  2. " Language:    html
  3. " Maintainer:    Dan Sharp <dwsharp at hotmail dot com>
  4. " Last Changed: 2003 Apr 16
  5. " URL:        http://mywebpage.netscape.com/sharppeople/vim/ftplugin
  6.  
  7. if exists("b:did_ftplugin") | finish | endif
  8. let b:did_ftplugin = 1
  9.  
  10. setlocal commentstring=<!--%s-->
  11.  
  12. " HTML:  thanks to Johannes Zellner.
  13. if exists("loaded_matchit") && !exists("b:match_words")
  14.     let b:match_ignorecase = 1
  15.     let b:match_skip = 's:Comment'
  16.     let b:match_words = '<:>,' .
  17.     \ '<\@<=[ou]l[^>]*\%(>\|$\):<\@<=li>:<\@<=/[ou]l>,' .
  18.     \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
  19. endif
  20.  
  21. " Change the :browse e filter to primarily show HTML-related files.
  22. if has("gui_win32") && !exists("b:browsefilter")
  23.     let  b:browsefilter="HTML Files (*.html,*.htm)\t*.html\n" .
  24.         \    "JavaScript Files (*.js)\t*.js\n" .
  25.         \    "Cascading StyleSheets (*.css)\t*.css\n" .
  26.         \    "All Files (*.*)\t*.*\n"
  27. endif
  28.