hebrew.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. *hebrew.txt* Nvim
  2. VIM REFERENCE MANUAL by Ron Aaron (and Avner Lottem)
  3. Hebrew Language support (options & mapping) for Vim *hebrew*
  4. The supporting 'rightleft' functionality was originally created by Avner
  5. Lottem. <alottem at gmail dot com> Ron Aaron <ron at ronware dot org> is
  6. currently helping support these features.
  7. ------------------------------------------------------------------------------
  8. Introduction
  9. Hebrew-specific 'keymap' values are "hebrew" and "hebrewp".
  10. Hebrew-useful options are 'delcombine', 'allowrevins', 'revins', 'rightleft'
  11. and 'rightleftcmd'.
  12. The 'rightleft' mode reverses the display order, so characters are displayed
  13. from right to left instead of the usual left to right. This is useful
  14. primarily when editing Hebrew or other Middle-Eastern languages.
  15. See |rileft.txt| for further details.
  16. ------------------------------------------------------------------------------
  17. Details
  18. + Options:
  19. + 'rightleft' ('rl') sets window orientation to right-to-left. This means
  20. that the logical text 'ABC' will be displayed as 'CBA', and will start
  21. drawing at the right edge of the window, not the left edge.
  22. + 'keymap' ('kmp') sets keyboard mapping. use values "hebrew" or "hebrewp"
  23. (the latter option enables phonetic mapping)
  24. + 'delcombine' ('deco'), boolean, allows one to remove the niqud or
  25. te`amim by pressing 'x' on a character (with associated niqud).
  26. + 'rightleftcmd' ('rlc') makes the command-prompt for searches show up on
  27. the right side. It only takes effect if the window is 'rightleft'.
  28. + Encoding:
  29. + Under Unix, ISO 8859-8 encoding (Hebrew letters codes: 224-250).
  30. + Under MS DOS, PC encoding (Hebrew letters codes: 128-154).
  31. + You should prefer using UTF8, as it supports the combining-characters
  32. ('deco' does nothing if UTF8 encoding is not active).
  33. + Vim arguments:
  34. + `vim -H file` starts editing a Hebrew file, i.e. 'rightleft' is set and
  35. 'keymap' is set to "hebrew".
  36. + Keyboard:
  37. + The 'allowrevins' option enables the CTRL-_ command in Insert mode.
  38. + CTRL-_ in Insert mode toggles 'revins'.
  39. CTRL-_ moves the cursor to the end of the typed text.
  40. Note: On some keyboards, CTRL-_ is mapped to CTRL-?.
  41. + Keyboard mapping while 'keymap' is "hebrew" (standard Israeli keyboard):
  42. q w e r t y u i o p
  43. / ' ק ר א ט ו ן ם פ
  44. a s d f g h j k l ; '
  45. ש ד ג כ ע י ח ל ך ף ,
  46. z x c v b n m , . /
  47. ז ס ב ה נ מ צ ת ץ .
  48. The 'keymap' keyboard can also insert niqud and te`amim. To see what
  49. those mappings are, look at the keymap file hebrew.vim etc.
  50. Typing backwards
  51. If the 'revins' (reverse insert) option is set, inserting happens backwards.
  52. This can be used to type Hebrew. When inserting characters the cursor is not
  53. moved and the text moves rightwards. A <BS> deletes the character under the
  54. cursor. CTRL-W and CTRL-U also work in the opposite direction. <BS>, CTRL-W
  55. and CTRL-U do not stop at the start of insert or end of line, no matter how
  56. the 'backspace' option is set.
  57. There is no reverse replace mode (yet).
  58. If the 'showmode' option is set, "-- REVERSE INSERT --" will be shown in the
  59. status line when reverse Insert mode is active.
  60. When the 'allowrevins' option is set, reverse Insert mode can be also entered
  61. and exited via CTRL-_.
  62. ------------------------------------------------------------------------------
  63. Pasting when in a rightleft window
  64. When cutting text with the mouse and pasting it in a rightleft window
  65. the text will be reversed, because the characters come from the cut buffer
  66. from the left to the right, while inserted in the file from the right to
  67. the left. In order to avoid it, toggle 'revins' (by typing CTRL-? or CTRL-_)
  68. before pasting.
  69. ------------------------------------------------------------------------------
  70. Hebrew characters and the 'isprint' variable
  71. Sometimes Hebrew character codes are in the non-printable range defined by
  72. the 'isprint' variable. For example in the Linux console, the Hebrew font
  73. encoding starts from 128, while the default 'isprint' variable is @,161-255.
  74. The result is that all Hebrew characters are displayed as ~x. To solve this
  75. problem, set isprint=@,128-255.
  76. vim:tw=78:ts=8:noet:ft=help:norl: