Writing hebrew text using Vim

Usually when you write hebrew in Vim, you have to write from left to right, which is a little annoying. Vim has two settings that allow typing hebrew easier:
  • set rightleft (or set rl) display the entire buffer from right to left
  • set keymap=hebrew - changes the keyboard mapping to hebrew (doesn't effect the OS mapping)

I wrote a simple function that toggles between hebrew mode (right-to-left and hebrew mapping) and normal mode (left-to-right and english mapping):

I'm binding this function to the key so I can easily switch between english and hebrew modes.


Barak said…
Thank you very much this is very helpful.

Popular posts from this blog

Restart the Windows File Sharing Service to fix weird problems

WPF, ImageSource and Embedded Resources

SharpDevelop dark color scheme