Describe the solution you'd like
hi everyone.
Right-to-left languages are not properly supported by Vim
But Iranians, Arabs, etc. need to write Persian or Arabic.
like this:

We would like the output to look like this:
hello
سلام
سلام العلیکم
ایران، عربستان، افغانستان، ترکمنستان
Describe alternatives you've considered
i not have spcial idea but i think UTF-8 support rtl languages.
Additional context
vim now:

we like to be:

—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I do not speak Arabic. But try :set arabic
Consider also reading :help arabic
Does it solve your problem?
Consider also indicating your version of vim (output of :version) when reporting issues.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
thanks @dpelle
but it is reverse:

i need to be like this:
چو ایران نباشد تن من مباد بدین بوم و بر زنده یک تن مباد
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Then set :set norightleft. Please read :h arabic.txt for what is currently possible. Also please note, this quite heavily depends on whether you use a gui or use a terminal. For the terminal version, this requires a terminal that supports it correctly.
However, better arabic mode is quite complicated, as none of the developers know enough about the rules how to combine characters and therefore cannot really try it out. Also better bidi and right-left support has long been in the todo list. But for the reasons mentioned before, a patch from someone who knows and uses this natively is probably the best to hope.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
hi @chrisbra
thanks,
this is work only for arabic and my keyboard must be arabic.
but i and iranian developers need to write persion or farsi.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
thanks @brammool .
if i can help you.
i'll definitely help you so that we can do this.
persion/farsi is my first language But in some projects, Persian language does not work properly
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Out of curiosity: What did Farsi support achieve in addition to
setlocal arabic setlocal keymap=persian
@motahharm : Vim can write from right to left if the terminal (such as urxvt) supports it and enabling &termbidi.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
For what it's worth, attached a phonetic persian vim keymap similar to that on Mac.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
To partially answer my above question, seemingly &arabicshape, the morphing of joint characters depending on their position in a word, misses some Persian ligatures such as ە and ا becoming ها
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Hi test blow command:
set termbidi
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Hi test blow command:
set termbidi
thanks, @alikaramniya set termbidi worked for me and now I can write my Documents in Persian with my favorite text editor 😃
image.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
For some reason, :set rl seems to re-shape letters assuming the terminal doesn't support letter shaping. While this might be the case in older terminals, most terminals currently do support letter shaping.
Here's a screenshot comparing Konsole (with shaping support) vs Alacritty (which doesn't support):
image.png (view on web)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
This seems a duplicate of #204
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #9761 as not planned.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
so closing then as duplicate
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
thanks @dpelle but it is reverse:
i need to be like this:
چو ایران نباشد تن من مباد بدین بوم و بر زنده یک تن مباد
Try disabling shaping: :set arabicshape!
This will fix rendering. This is caused by the conflict of terminal and vim both trying to apply letter shaping.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Hi test blow command:
set termbidi
Tnx, you saved my time.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()