Removing the rightleft feature?

23 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 29, 2022, 10:28:19 AM9/29/22
to vim...@googlegroups.com

The +rightleft feature has not gotten any work done for quite a while.
In the past we would get a bug report once in a while. These days I'm
sure a lot of things have been added that do not work with 'rightleft'
set, and I haven't heard complaints.

I think 'rightleft' is most useful when working on Hebrew or Arabic
text. Any users around who do that? Is nothing broken?

The code for rightleft handling is all over the place and makes some
functions quite complex. It would help a lot if we can remove it.

On the other hand, if someone would want to pick up fixing the
+rightleft feature, the current code is probably a good starting point.
That is why it's left in until now. Even though bi-directional text
handling probably needs to be done differently, using markers in the
text. But that is also very complicated, e.g. what does "d3w" do when
some text is right-to-left?

Opinions?

--
hundred-and-one symptoms of being an internet addict:
219. Your spouse has his or her lawyer deliver the divorce papers...
via e-mail.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

tooth pik

unread,
Oct 1, 2022, 4:29:33 PM10/1/22
to vim...@googlegroups.com
it seems to me everyone would be better served by splitting vim into two:  normal
vim that goes left to right and arabic vim (viml?) that goes right to left -- both apps
would be simpler because they wouldn't have to go both directions.



--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/20220929142806.C86491C05F2%40moolenaar.net.

Bram Moolenaar

unread,
Oct 1, 2022, 5:35:44 PM10/1/22
to vim...@googlegroups.com, tooth pik

> it seems to me everyone would be better served by splitting vim into two:
> normal vim that goes left to right and arabic vim (viml?) that goes
> right to left
> -- both apps would be simpler because they wouldn't have to go both
> directions.

This still requires a few people maintaining the right-to-left version.
With the added handicap that all changes to the left-to-right version
have to be merged. And authors of those changes won't have any idea
what trouble they cause for the right-to-left version. This is worse
than what we have now.

The current right-to-left feature is limited, all the text is reversed
in direction. Proper bidirectional support works very differently.
While at the same time, the user has to decide how the stuff besides the
text is placed: number column, signs, menus, command line, etc. Ideally
bidirectional support is added on top of the existing right-to-left
support. This does require a few people (who actually use
right-to-left) to do this work.

--
"Marriage is the process of finding out what kind of man your wife
would have preferred"
Reply all
Reply to author
Forward
0 new messages