annotate runtime/ftplugin/html.vim @ 507:a1059cda45f2 v7.0142

updated for version 7.0142
author vimboss
date Tue, 06 Sep 2005 19:25:11 +0000
parents 631143ac4a01
children a7ae7e043e43
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: html
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Dan Sharp <dwsharp at hotmail dot com>
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
4 " Last Changed: 2004 Jul 08
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " URL: http://mywebpage.netscape.com/sharppeople/vim/ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin") | finish | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Make sure the continuation lines below do not cause problems in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " compatibility mode.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let s:save_cpo = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 setlocal commentstring=<!--%s-->
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " HTML: thanks to Johannes Zellner and Benji Fisher.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 if exists("loaded_matchit")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 let b:match_ignorecase = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 let b:match_skip = 's:Comment'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 let b:match_words = '<:>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Change the :browse e filter to primarily show HTML-related files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if has("gui_win32")
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
29 let b:browsefilter="HTML Files (*.html,*.htm)\t*.htm;*.html\n" .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 \ "JavaScript Files (*.js)\t*.js\n" .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 \ "Cascading StyleSheets (*.css)\t*.css\n" .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 \ "All Files (*.*)\t*.*\n"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Undo the stuff we changed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 let b:undo_ftplugin = "setlocal commentstring<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 \ " | unlet! b:match_ignorecase b:match_skip b:match_words b:browsefilter"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " Restore the saved compatibility options.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 let &cpo = s:save_cpo