On 30/04/09 10:30, Rudolf Bahr wrote:
>
> * StarWing ([email protected]) [090429 07:12]:
>>
>> see :h 'ri'
>
>
>
> Hello Weasley,
>
> thank you for answering! I tried ":set ri" and it worked, but a little bit
> laborious, in that the cursor remains at the right edge of the monitor and
> shows the next character which will be adjusted at the left side of the text
> after entering another next character at cursor's place. It's somehow like
> a conductor who must always be in front of his orchestra by 1 time.
>
> In the meantime I installed gvim (GTK2 GUI) and after:
>
> gvim -A txt
> :set arabic
>
> all works perfectly well as expected! vim and gvim seem here to react 
> differently.
>
> Best regards, Rudolf

With 'revins' set, I expect Vim will insert the characters in the wrong 
sequence into your buffer, i.e., the last character of the word will be 
first in the buffer, which means the Arabic will be displayed correctly 
in 'norightleft' mode in Vim, but if the same file is viewed by, let's 
say, a browser (all modern browsers are bidi-capable), the Arabic will 
appear reversed.

If the text gets inserted the wrong way in a terminal, but not in gvim, 
with 'rightleft' on and 'revins' off, it may mean that you are running 
on a full-bidi terminal. In that case you should set 'termbidi' and not 
'rightleft' (see ":help 'termbidi' for details).

Of course, the GUI is not a full-bidi terminal, and you may be running 
Console Vim on the same machine on different terminals, some of them 
full-bidi and others not, so you should test all that in your vimrc, 
something like:

        if !has('gui_running') &&
                \ (&term == 'blablabli' || &term == 'blablabla')
                        set termbidi norightleft
        endif


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
22. You've already visited all the links at Yahoo and you're halfway through
     Lycos.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to