Commits

ZyX_I  committed 4b13bd0

@aurum/edit: Added support for writing files in different encodings to aurum://edit

  • Participants
  • Parent commits 3a7edbf

Comments (0)

Files changed (1)

File plugin/aurum/edit.vim

                 let lines=[join(lines, "\r")]
             endif
         endif
+        if !empty(&fileencoding) && &encoding isnot# &fileencoding
+            call map(lines, 'iconv(v:val, "'.&encoding.'","'.&fileencoding.'")')
+        endif
         call writefile(lines, a:file, 'b')
         setlocal nomodified
     endif