Re: vim and Arabic/Farsi support

From: James Cloos (
Date: Mon Dec 03 2007 - 13:34:52 CST

  • Next message: Kenneth Whistler: "Re: Katakana Extended-A?"

    >>>>> "Jeroen" == Jeroen Ruigrok van der Werven <> 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.)


    James Cloos <>         OpenPGP: 1024D/ED7DAEA6

    This archive was generated by hypermail 2.1.5 : Mon Dec 03 2007 - 13:38:12 CST