Hi,
"J.A.J. Pater" <[email protected]> wrote:
> When I open a UTF-text file with right-to-left-text (hebrew in this
> case) and left-to-right-text (english in this case) in gedit it is
> rendered OK (rtl is displayed as rtl, ltr is displayed as ltr).
>
> But when I open the same file in gvim the right-to-left text (hebrew) is
> showed as left-to-right text (just as the rest of the file, cq. english).
>
> Is there a way to get the same behaviour as in gedit?
As a workaround, I use this function to make editing files with mixed
rtl and ltr words easier:
" make right to left editing easier
" replace Mylang and mykeymap
function! Mylang()
setlocal keymap=mykeymap rl delcombine
" use s-tab to switch the direction and keymap
map <buffer> <s-tab> :let &imi=1-&imi<cr>:setlocal invrl<cr>
" the same in insert mode
imap <buffer> <s-tab> <esc><s-tab>a
endfunction
command Mylang call Mylang()
Ali
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---