Ali Gholami Rudi wrote: > 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 Thanks for the tip.
--~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
