vim unicode bufread/bufwrite script
Posted
by anon
on Stack Overflow
See other posts from Stack Overflow
or by anon
Published on 2010-04-21T11:11:29Z
Indexed on
2010/04/21
13:03 UTC
Read the original article
Hit count: 253
Problem:
I want my unicode characters to be stored on disk as (rather tan utf8/16 encoding)
\u####
However, I want them dispalyed as unicode characters when opened up in vim.
I think the easiest way to acheive this is some bufopen/bufwrite script that automatically:
on opening, convert \u#### to unicode character
on writing, convert unicode characters into \u####
However, I don't know what functions to call to make this happen. Can someone lend a hand?
Thanks!
© Stack Overflow or respective owner