home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vim53os2.zip / vim-5.3 / doc / digraph.txt < prev    next >
Text File  |  1998-08-30  |  8KB  |  158 lines

  1. *digraph.txt*   For Vim version 5.3.  Last modification: 1998 Apr 15
  2.  
  3.  
  4.           VIM REFERENCE MANUAL    by Bram Moolenaar
  5.  
  6.  
  7. Digraphs                        *digraphs*
  8.  
  9. Digraphs are used to enter characters that normally cannot be entered by
  10. an ordinary keyboard.  These are mostly accented characters which have the
  11. eighth bit set.  The digraphs are easier to remember than the decimal number
  12. that can be entered with CTRL-V (see |i_CTRL-V|).
  13.  
  14. 1. Defining digraphs    |digraphs-define|
  15. 2. Using digraphs    |digraphs-use|
  16. 3. Default digraphs    |digraphs-default|
  17.  
  18. {Vi does not have any of these commands}
  19.  
  20. ==============================================================================
  21. 1. Defining digraphs                    *digraphs-define*
  22.  
  23.                         *:dig* *:digraphs*
  24. :dig[raphs]        show currently defined digraphs.
  25.  
  26. :dig[raphs] {char1}{char2} {number} ...
  27.             Add digraph {char1}{char2} to the list.  {number} is
  28.             the decimal representation of the character.
  29.  
  30. Vim is normally compiled with the |+digraphs| feature.  If it has been
  31. disabled, the ":digraph" command will display an error message.
  32.  
  33. ==============================================================================
  34. 2. Using digraphs                    *digraphs-use*
  35.  
  36. There are two methods to enter digraphs:            *i_digraph*
  37.     CTRL-K {char1} {char2}        or
  38.     {char1} <BS> {char2}
  39. The first is always available.  The second only when the 'digraph' option is
  40. set.
  41.  
  42. If a digraph with {char1}{char2} does not exist, a digraph {char2}{char1} is
  43. searched for.  This will help when you don't remember which character comes
  44. first.
  45.  
  46. Note that when you enter CTRL-K {char1}, where {char1} is a special key, the
  47. code for that special key is entered.  This is not a digraph.
  48.  
  49. Once you have entered the digraph the character is treated like a normal
  50. character, taking up only one character in the file and on the screen.
  51. Example:
  52. >    '|' <BS> '|'    will enter the double '|' character (166)
  53. >    'a' <BS> '^'    will enter an 'a' with a hat (226)
  54. >    CTRL-K '-' '-'    will enter a minus sign (173)
  55.  
  56. The default digraphs are listed in the file "digraph.txt" |digraph-table|.
  57. There are two sets: One that is used for MS-DOS and one for the international
  58. standard character set that is mostly used on Unix systems and the Amiga.
  59. With the wrong character set they will look illogical.
  60.  
  61. For CTRL-K there is one general digraph: CTRL-K <Space> {char} will enter
  62. {char} with the highest bit set.  This can be used to enter meta-characters.
  63.  
  64. The <Esc> character cannot be part of a digraph.  When hitting <Esc> the
  65. entering of the digraph is aborted and Insert mode or command-line mode is
  66. ended, just like hitting an <Esc>.
  67.  
  68. If you accidently typed an 'a' that should be an 'e', you will type 'a' <BS>
  69. 'e'.  But that is a digraph, so you will not get what you want.  To correct
  70. this, you will have to type <BS> e again.  To avoid this don't set the
  71. 'digraph' option and use CTRL-K to enter digraphs.
  72.  
  73. You may have problems using Vim with characters which have an ascii value >
  74. 128.  For example: You insert ue (u-umlaut) and the editor echoes \334 in
  75. Insert mode.  After leaving the Insert mode everything is fine.  Also fmt
  76. removes all characters with ascii > 128 from the text being formated.
  77. On some Unix systems this means you have to define the environment-variable
  78. LC_CTYPE.  If you are using csh then put in your .cshrc following line:
  79. >    setenv LC_CTYPE iso_8859_1
  80.  
  81. ==============================================================================
  82. 3. Default digraphs                    *digraphs-default*
  83.  
  84. These are the default digraph characters for Vim.
  85.  
  86. Besides the digraphs listed below, meta characters can be entered with CTRL-K
  87. <Space> {char}.  Only <Esc> cannot be used for {char}.  Use CTRL-V 155 to
  88. enter meta-ESC (CSI).
  89.  
  90. The first two characters in each column are the characters you have to type to
  91. enter the digraph.
  92.  
  93. In the middle of each column is the resulting character.  This may be mangled
  94. if you look at this file on something other than the system that they were
  95. meant for or if you print it.
  96.  
  97. The decimal number is the ASCII code for the character.
  98.  
  99.                             *digraph-table*
  100. Default digraphs for machines that are not mentioned below:
  101. ~! í 161   c| ó 162   $$ ú 163   ox ñ 164   Y- Ñ 165   || ª 166   pa º 167
  102. "" ¿ 168   cO ⌐ 169   a- ¬ 170   << ½ 171   -, ¼ 172   -- ¡ 173   rO « 174
  103. -= » 175   ~o ░ 176   +- ▒ 177   22 ▓ 178   33 │ 179   '' ┤ 180   ju ╡ 181
  104. pp ╢ 182   ~. ╖ 183   ,, ╕ 184   11 ╣ 185   o- ║ 186   >> ╗ 187   14 ╝ 188
  105. 12 ╜ 189   34 ╛ 190   ~? ┐ 191   A` └ 192   A' ┴ 193   A^ ┬ 194   A~ ├ 195
  106. A" ─ 196   A@ ┼ 197   AA ┼ 197   AE ╞ 198   C, ╟ 199   E` ╚ 200   E' ╔ 201
  107. E^ ╩ 202   E" ╦ 203   I` ╠ 204   I' ═ 205   I^ ╬ 206   I" ╧ 207   D- ╨ 208
  108. N~ ╤ 209   O` ╥ 210   O' ╙ 211   O^ ╘ 212   O~ ╒ 213   O" ╓ 214   /\ ╫ 215
  109. O/ ╪ 216   U` ┘ 217   U' ┌ 218   U^ █ 219   U" ▄ 220   Y' ▌ 221   Ip ▐ 222
  110. ss ▀ 223   a` α 224   a' ß 225   a^ Γ 226   a~ π 227   a" Σ 228   a@ σ 229
  111. aa σ 229   ae µ 230   c, τ 231   e` Φ 232   e' Θ 233   e^ Ω 234   e" δ 235
  112. i` ∞ 236   i' φ 237   i^ ε 238   i" ∩ 239   d- ≡ 240   n~ ± 241   o` ≥ 242
  113. o' ≤ 243   o^ ⌠ 244   o~ ⌡ 245   o" ÷ 246   :- ≈ 247   o/ ° 248   u` ∙ 249
  114. u' · 250   u^ √ 251   u" ⁿ 252   y' ² 253   ip ■ 254   y"   255
  115.  
  116.  
  117. Default digraphs for some HPUX machines:
  118. A` í 161   A^ ó 162   E` ú 163   E^ ñ 164   E" Ñ 165   I^ ª 166   I" º 167
  119. '' ¿ 168   `` ⌐ 169   ^^ ¬ 170   "" ½ 171   ~~ ¼ 172   U` ¡ 173   U^ « 174
  120. L= » 175   ~_ ░ 176   Y' ▒ 177   y' ▓ 178   ~o │ 179   C, ┤ 180   c, ╡ 181
  121. N~ ╢ 182   n~ ╖ 183   ~! ╕ 184   ~? ╣ 185   ox ║ 186   L- ╗ 187   Y= ╝ 188
  122. pp ╜ 189   fl ╛ 190   c| ┐ 191   a^ └ 192   e^ ┴ 193   o^ ┬ 194   u^ ├ 195
  123. a' ─ 196   e' ┼ 197   o' ╞ 198   u' ╟ 199   a` ╚ 200   e` ╔ 201   o` ╩ 202
  124. u` ╦ 203   a" ╠ 204   e" ═ 205   o" ╬ 206   u" ╧ 207   Ao ╨ 208   i^ ╤ 209
  125. O/ ╥ 210   AE ╙ 211   ao ╘ 212   i' ╒ 213   o/ ╓ 214   ae ╫ 215   A" ╪ 216
  126. i` ┘ 217   O" ┌ 218   U" █ 219   E' ▄ 220   i" ▌ 221   ss ▐ 222   O^ ▀ 223
  127. A' α 224   A~ ß 225   a~ Γ 226   D- π 227   d- Σ 228   I' σ 229   I` µ 230
  128. O' τ 231   O` Φ 232   O~ Θ 233   o~ Ω 234   S~ δ 235   s~ ∞ 236   U' φ 237
  129. Y" ε 238   y" ∩ 239   p- ≡ 240   p~ ± 241   ~. ≥ 242   ju ≤ 243   Pp ⌠ 244
  130. 34 ⌡ 245   -- ÷ 246   14 ≈ 247   12 ° 248   a_ ∙ 249   o_ · 250   << √ 251
  131. xx ⁿ 252   >> ² 253   +- ■ 254   nu   255
  132.  
  133.  
  134. Default digraphs on MS-DOS, OS/2 and Win32-console:
  135. C, Ç 128   u" ü 129   e' é 130   a^ â 131   a" ä 132   a` à 133   a@ å 134
  136. c, ç 135   e^ ê 136   e" ë 137   e` è 138   i" ï 139   i^ î 140   i` ì 141
  137. A" Ä 142   A@ Å 143   E' É 144   ae æ 145   AE Æ 146   o^ ô 147   o" ö 148
  138. o` ò 149   u^ û 150   u` ù 151   y" ÿ 152   O" Ö 153   U" Ü 154   c| ¢ 155
  139. $$ £ 156   Y- ¥ 157   Pt ₧ 158   ff ƒ 159   a' á 160   i' í 161   o' ó 162
  140. u' ú 163   n~ ñ 164   N~ Ñ 165   aa ª 166   oo º 167   ~? ¿ 168   -a ⌐ 169
  141. a- ¬ 170   12 ½ 171   14 ¼ 172   ~! ¡ 173   << « 174   >> » 175   ss ß 225
  142. ju µ 230   o/ φ 237   +- ± 241   >= ≥ 242   <= ≤ 243   :- ÷ 246   ~~ ≈ 247
  143. ~o ° 248   22 ² 253
  144.  
  145.  
  146. Default digraphs for MiNT:
  147. C, Ç 128  u" ü 129  e' é 130  a^ â 131  a" ä 132  a` à 133  a@ å 134
  148. c, ç 135  e^ ê 136  e" ë 137  e` è 138  i" ï 139  i^ î 140  i` ì 141
  149. A" Ä 142  A@ Å 143  E' É 144  ae æ 145  AE Æ 146  o^ ô 147  o" ö 148
  150. o` ò 149  u^ û 150  u` ù 151  y" ÿ 152  O" Ö 153  U" Ü 154  c| ¢ 155
  151. $$ £ 156  Y- ¥ 157  ss ₧ 158  ff ƒ 159  a' á 160  i' í  161  o' ó  162
  152. u' ú  163  n~ ñ  164  N~ Ñ  165  aa ª  166  oo º  167  ~? ¿  168  -a ⌐  169
  153. a- ¬  170  12 ½  171  14 ¼  172  ~! ¡  173  << «  174  >> »  175  ju µ  230
  154. o/ φ  237  +- ±  241  >= ≥  242  <= ≤  243  :- ÷  246  ~~ ≈  247  ~o °  248
  155. 22 ²  253
  156.  
  157.  vim:ts=8:sw=8:tw=78:
  158.