diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-08-06 17:06:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-08-06 17:06:04 +0000 |
commit | e37d50a5def1c0ff162392cd3f017059c458650c (patch) | |
tree | e7d1e2b17976b130d1283d33b091baf30cfc5d2c /runtime/ftplugin/html.vim | |
parent | da40c8536c2b7bdbd1d192ee1aa3045e2119675e (diff) |
updated for version 7.2c-000v7.2c.000
Diffstat (limited to 'runtime/ftplugin/html.vim')
-rw-r--r-- | runtime/ftplugin/html.vim | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/ftplugin/html.vim b/runtime/ftplugin/html.vim index 4797f4b460..6c8607d92b 100644 --- a/runtime/ftplugin/html.vim +++ b/runtime/ftplugin/html.vim @@ -12,8 +12,14 @@ let b:did_ftplugin = 1 let s:save_cpo = &cpo set cpo-=C -setlocal commentstring=<!--%s--> setlocal matchpairs+=<:> +setlocal commentstring=<!--%s--> +setlocal comments=s:<!--,m:\ \ \ \ ,e:--> + +if exists("g:ft_html_autocomment") && (g:ft_html_autocomment == 1) + setlocal formatoptions-=t formatoptions+=croql +endif + if exists('&omnifunc') " Distinguish between HTML versions @@ -77,7 +83,7 @@ if has("gui_win32") endif " Undo the stuff we changed. -let b:undo_ftplugin = "setlocal commentstring< matchpairs< omnifunc<" +let b:undo_ftplugin = "setlocal commentstring< matchpairs< omnifunc< comments< formatoptions<" . \ " | unlet! b:match_ignorecase b:match_skip b:match_words b:browsefilter" " Restore the saved compatibility options. |