Am 19.06.16 um 18:20 schrieb Rustom Mody:
I gave an emacs solution to the issue not because I find editor-wars engaging
but because I dont know how to do *this* with vi.
I'd be surprised if vi actually cant do these:
1. Look under the unicode-hood to peek at what a char is -- C-u C-x = in emacs
2. Change file encoding -- C-x RET f in emacs

Please do suggest vi-ways of handling this -- that would be useful!

Changing the encoding is

        :set fileencoding=utf-8

for instance. This will recode the buffer to utf-8, the rendering should stay the same. Saving the file would now write a bytestream which has an utf-8 interpretation in accordance to the display.

In any case, I'd suggest to install macvim on the Mac, instead of using the Apple-provided vim, because of it's GUI windows and overall better integration (file types, copy/paste etc.)

        Christian
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to