Recently I installed vim 8.2 on Windows 10 and vim 8.1.2269 on Linux Ubuntu.

Both are compiled with +rightleft option. When I use gvim -H or vim -H (without vimrc file) and run :set number, I get line numbers on the right side (as it should be).

However, the line numbers between 10 and 99 appear reversed, i.e., 01,11,21,32,..., unlike in the previous versions of vim.

Am I doing something wrong or is it a bug?

  • Welcome to Vi and Vim! -H is called "Hebrew mode" in the docs, and it sets hkmap and rightleft; could this perhaps be expected?
    – D. Ben Knoble
    Jan 14, 2021 at 16:53
  • @d-ben-knoble: If you meant "it's not a bug, it's a feature", then definitely - not!
    – Dan Haran
    Jan 14, 2021 at 18:41

1 Answer 1


As it turns out, this was an obscure bug, that was caused by patch 8.1.1073.

I have just submitted a patch to fix this issue and it has just been included as of Patch v8.2.3012

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.