Re: vim and Arabic/Farsi support

James Cloos <[email protected]>
Newsgroups gmane.text.unicode.devel
Message-ID <[email protected]>
>>>>> "Jeroen" == Jeroen Ruigrok van der Werven <[email protected]> writes:

Jeroen> Now, in vim, when I copy it through PuTTY and paste it in
Jeroen> Notepad I get: ﺖﻏییﺭ

Vim is probably using the presentation characters to ensure the display
in a terminal is correct, but storing the logical characters internally.

When you select the glyphs you get the presentation characters because
that is all the terminal emulator (putty) sees.

If selections in gvim also result in the presentation characters rather
than the underlying characters you have found a bug.  Gvim should send
the logical rather than the presentation when asked for a selection.

(My initial hypothesis, however, could be wrong.  Vim might translate
the logical to presentation at the time of entry and only store the
latter.  But I find that unlikely at best.)

-JimC
-- 
James Cloos <[email protected]>         OpenPGP: 1024D/ED7DAEA6
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.