Attachment 'vimcolor-utf8.diff'

Download

   1 178c178
   2 < 		import os, tempfile
   3 ---
   4 > 		import os, tempfile, codecs
   5 181c181
   6 < 		open(vstemp,'w').write(VIM_MARK_RC)
   7 ---
   8 > 		codecs.open(vstemp,'w','utf-8').write(VIM_MARK_RC)
   9 188c188
  10 < 		sh=open(shtemp,'w')
  11 ---
  12 > 		sh=codecs.open(shtemp,'w', 'utf-8')
  13 194c194,196
  14 < %(filetype)s:source %(vstemp)s
  15 ---
  16 > %(filetype)s:set encoding=utf-8
  17 > :source %(vstemp)s
  18 > :set fileencoding=utf-8
  19 204c206
  20 < 		lines=open(outtemp,'r').readlines()
  21 ---
  22 > 		lines=codecs.open(outtemp,'r', 'utf-8').readlines()
  23 262a265
  24 > 		import codecs
  25 264c267
  26 < 		f=open(fn,'w')
  27 ---
  28 > 		f=codecs.open(fn,'w','utf-8')

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2005-08-19 14:02:49, 8.9 KB) [[attachment:VimColor-iso8859_15.py]]
  • [get | view] (2004-10-25 06:07:42, 8.9 KB) [[attachment:VimColor.py]]
  • [get | view] (2005-11-25 08:14:41, 0.6 KB) [[attachment:vimcolor-utf8.diff]]
  • [get | view] (2006-11-09 17:54:21, 1.8 KB) [[attachment:vimcolor-utf8.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.