hebrew.txt 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. *hebrew.txt* For Vim version 9.0. Last change: 2019 May 05
  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. {only available when the |+rightleft| feature was enabled at compile time}
  8. Introduction
  9. ------------
  10. Hebrew-specific options are 'hkmap', 'hkmapp' 'keymap'=hebrew and 'aleph'.
  11. Hebrew-useful options are 'delcombine', 'allowrevins', 'revins', 'rightleft'
  12. and 'rightleftcmd'.
  13. The 'rightleft' mode reverses the display order, so characters are displayed
  14. from right to left instead of the usual left to right. This is useful
  15. primarily when editing Hebrew or other Middle-Eastern languages.
  16. See |rileft.txt| for further details.
  17. Details
  18. --------------
  19. + Options:
  20. + 'rightleft' ('rl') sets window orientation to right-to-left. This means
  21. that the logical text 'ABC' will be displayed as 'CBA', and will start
  22. drawing at the right edge of the window, not the left edge.
  23. + 'hkmap' ('hk') sets keyboard mapping to Hebrew, in insert/replace modes.
  24. + 'aleph' ('al'), numeric, holds the decimal code of Aleph, for keyboard
  25. mapping.
  26. + 'hkmapp' ('hkp') sets keyboard mapping to 'phonetic hebrew'
  27. NOTE: these three ('hkmap', 'hkmapp' and 'aleph') are obsolete. You should
  28. use ":set keymap=hebrewp" instead.
  29. + 'delcombine' ('deco'), boolean, if editing UTF-8 encoded Hebrew, allows
  30. one to remove the niqud or te`amim by pressing 'x' on a character (with
  31. associated niqud).
  32. + 'rightleftcmd' ('rlc') makes the command-prompt for searches show up on
  33. the right side. It only takes effect if the window is 'rightleft'.
  34. + Encoding:
  35. + Under Unix, ISO 8859-8 encoding (Hebrew letters codes: 224-250).
  36. + Under MS DOS, PC encoding (Hebrew letters codes: 128-154).
  37. These are defaults, that can be overridden using the 'aleph' option.
  38. + You should prefer using UTF8, as it supports the combining-characters
  39. ('deco' does nothing if UTF8 encoding is not active).
  40. + Vim arguments:
  41. + 'vim -H file' starts editing a Hebrew file, i.e. 'rightleft' and 'hkmap'
  42. are set.
  43. + Keyboard:
  44. + The 'allowrevins' option enables the CTRL-_ command in Insert mode and
  45. in Command-line mode.
  46. + CTRL-_ in insert/replace modes toggles 'revins' and 'hkmap' as follows:
  47. When in rightleft window, 'revins' and 'nohkmap' are toggled, since
  48. English will likely be inserted in this case.
  49. When in norightleft window, 'revins' 'hkmap' are toggled, since Hebrew
  50. will likely be inserted in this case.
  51. CTRL-_ moves the cursor to the end of the typed text.
  52. + CTRL-_ in command mode only toggles keyboard mapping (see Bugs below).
  53. This setting is independent of 'hkmap' option, which only applies to
  54. insert/replace mode.
  55. Note: On some keyboards, CTRL-_ is mapped to CTRL-?.
  56. + Keyboard mapping while 'hkmap' is set (standard Israeli keyboard):
  57. q w e r t y u i o p
  58. / ' ק ר א ט ו ן ם פ
  59. a s d f g h j k l ; '
  60. ש ד ג כ ע י ח ל ך ף ,
  61. z x c v b n m , . /
  62. ז ס ב ה נ מ צ ת ץ .
  63. This is also the keymap when 'keymap=hebrew' is set. The advantage of
  64. 'keymap' is that it works properly when using UTF8, e.g. it inserts the
  65. correct characters; 'hkmap' does not. The 'keymap' keyboard can also
  66. insert niqud and te`amim. To see what those mappings are, look at the
  67. keymap file 'hebrew.vim' etc.
  68. Typing backwards
  69. If the 'revins' (reverse insert) option is set, inserting happens backwards.
  70. This can be used to type Hebrew. When inserting characters the cursor is not
  71. moved and the text moves rightwards. A <BS> deletes the character under the
  72. cursor. CTRL-W and CTRL-U also work in the opposite direction. <BS>, CTRL-W
  73. and CTRL-U do not stop at the start of insert or end of line, no matter how
  74. the 'backspace' option is set.
  75. There is no reverse replace mode (yet).
  76. If the 'showmode' option is set, "-- REVERSE INSERT --" will be shown in the
  77. status line when reverse Insert mode is active.
  78. When the 'allowrevins' option is set, reverse Insert mode can be also entered
  79. via CTRL-_, which has some extra functionality: First, keyboard mapping is
  80. changed according to the window orientation -- if in a left-to-right window,
  81. 'revins' is used to enter Hebrew text, so the keyboard changes to Hebrew
  82. ('hkmap' is set); if in a right-to-left window, 'revins' is used to enter
  83. English text, so the keyboard changes to English ('hkmap' is reset). Second,
  84. when exiting 'revins' via CTRL-_, the cursor moves to the end of the typed
  85. text (if possible).
  86. Pasting when in a rightleft window
  87. ----------------------------------
  88. When cutting text with the mouse and pasting it in a rightleft window
  89. the text will be reversed, because the characters come from the cut buffer
  90. from the left to the right, while inserted in the file from the right to
  91. the left. In order to avoid it, toggle 'revins' (by typing CTRL-? or CTRL-_)
  92. before pasting.
  93. Hebrew characters and the 'isprint' variable
  94. --------------------------------------------
  95. Sometimes Hebrew character codes are in the non-printable range defined by
  96. the 'isprint' variable. For example in the Linux console, the Hebrew font
  97. encoding starts from 128, while the default 'isprint' variable is @,161-255.
  98. The result is that all Hebrew characters are displayed as ~x. To solve this
  99. problem, set isprint=@,128-255.
  100. vim:tw=78:ts=8:noet:ft=help:norl: