diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-11-16 20:34:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-11-16 20:34:40 +0100 |
commit | 166af9bb6f4f0c9a2f570766d26b42d2041860f2 (patch) | |
tree | 88791f76ef3946812ab212f61e130fdd39078852 /runtime/syntax/2html.vim | |
parent | 644d37b84d8f520f807ef665b476c47b72862eff (diff) | |
download | vim-git-166af9bb6f4f0c9a2f570766d26b42d2041860f2.tar.gz |
Updated runtime files.
Diffstat (limited to 'runtime/syntax/2html.vim')
-rw-r--r-- | runtime/syntax/2html.vim | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/runtime/syntax/2html.vim b/runtime/syntax/2html.vim index ad58112d2..22ce73152 100644 --- a/runtime/syntax/2html.vim +++ b/runtime/syntax/2html.vim @@ -1,6 +1,6 @@ " Vim syntax support file " Maintainer: Ben Fritz <fritzophrenic@gmail.com> -" Last Change: 2010 Aug 12 +" Last Change: 2010 Sep 04 " " Additional contributors: " @@ -265,6 +265,19 @@ set paste let s:old_magic = &magic set magic +" set the fileencoding to match the charset we'll be using +let &l:fileencoding=s:settings.vim_encoding + +" According to http://www.w3.org/TR/html4/charset.html#doc-char-set, the byte +" order mark is highly recommend on the web when using multibyte encodings. But, +" it is not a good idea to include it on UTF-8 files. Otherwise, let Vim +" determine when it is actually inserted. +if s:settings.vim_encoding == 'utf-8' + setlocal nobomb +else + setlocal bomb +endif + let s:lines = [] if s:settings.use_xhtml @@ -1071,14 +1084,14 @@ let &magic = s:old_magic let @/ = s:old_search let &more = s:old_more exe s:orgwin . "wincmd w" +let &l:stl = s:origwin_stl let &l:et = s:old_et let &l:scrollbind = s:old_bind exe s:newwin . "wincmd w" +let &l:stl = s:newwin_stl exec 'resize' s:old_winheight let &l:winfixheight = s:old_winfixheight -call setwinvar(s:orgwin,'&stl', s:origwin_stl) -call setwinvar(s:newwin,'&stl', s:newwin_stl) let &ls=s:ls " Save a little bit of memory (worth doing?) |