summaryrefslogtreecommitdiff
path: root/runtime/autoload/tohtml.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-08-13 11:30:02 +0200
committerBram Moolenaar <Bram@vim.org>2010-08-13 11:30:02 +0200
commit8df7f88890fc6129b8400dc62244f5282fc7408b (patch)
tree447c3d6ba82df2bff610c757ba35fe6c17fb13ae /runtime/autoload/tohtml.vim
parent2f1e050414935410da55560d017543fa210e19c0 (diff)
downloadvim-8df7f88890fc6129b8400dc62244f5282fc7408b.zip
Updates for :TOhtml. (Benjamin Fritz)
Diffstat (limited to 'runtime/autoload/tohtml.vim')
-rw-r--r--runtime/autoload/tohtml.vim10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/autoload/tohtml.vim b/runtime/autoload/tohtml.vim
index c189b188f..c24d6ff42 100644
--- a/runtime/autoload/tohtml.vim
+++ b/runtime/autoload/tohtml.vim
@@ -1,6 +1,6 @@
" Vim autoload file for the tohtml plugin.
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
-" Last Change: 2010 Aug 06
+" Last Change: 2010 Aug 12
"
" Additional contributors:
"
@@ -52,6 +52,11 @@ func! tohtml#Diff2HTML(win_list, buf_list)
let xml_line = ""
let tag_close = '>'
+ let s:old_paste = &paste
+ set paste
+ let s:old_magic = &magic
+ set magic
+
if s:settings.use_xhtml
if s:settings.encoding != ""
let xml_line = "<?xml version=\"1.0\" encoding=\"" . s:settings.encoding . "\"?>"
@@ -250,6 +255,9 @@ func! tohtml#Diff2HTML(win_list, buf_list)
\ ])
endif
endif
+
+ let &paste = s:old_paste
+ let &magic = s:old_magic
endfunc
" Gets a single user option and sets it in the passed-in Dict, or gives it the