home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim54rt.sit / runtime / doc / digraph.txt < prev    next >
Encoding:
Text File  |  1999-08-14  |  7.2 KB  |  158 lines  |  [TEXT/ALFA]

  1. *digraph.txt*   For Vim version 5.4.  Last change: 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 the feature is
  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, Vim searches for a digraph
  43. {char2}{char1}.  This helps 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, Vim
  47. enters the code for that special key.  This is not a digraph.
  48.  
  49. Once you have entered the digraph, Vim treats the character like a normal
  50. character that occupies 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 below |digraph-table| along with those for
  57. several specific systems.  With the wrong character set, they will look
  58. illogical.
  59.  
  60. For CTRL-K, there is one general digraph: CTRL-K <Space> {char} will enter
  61. {char} with the highest bit set.  You can use this to enter meta-characters.
  62.  
  63. The <Esc> character cannot be part of a digraph.  When hitting <Esc>, Vim
  64. stops digraph entry and ends insert mode or command-line mode, just like
  65. hitting an <Esc> out of digraph context.
  66.  
  67. If you accidentally typed an 'a' that should be an 'e', you will type 'a' <BS>
  68. 'e'.  But that is a digraph, so you will not get what you want.  To correct
  69. this, you will have to type <BS> e again.  To avoid this don't set the
  70. 'digraph' option and use CTRL-K to enter digraphs.
  71.  
  72. You may have problems using Vim with characters which have an ASCII value
  73. above 128.  For example: You insert ue (u-umlaut) and the editor echoes \334
  74. in Insert mode.  After leaving the Insert mode everything is fine.  Note that
  75. fmt removes all characters with ASCII codes above 128 from the text being
  76. formated.  On some Unix systems this means you have to define the
  77. environment-variable LC_CTYPE.  If you are using csh, then put the following
  78. line in your .cshrc:
  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, you can enter meta characters with CTRL-K
  87. <Space> {char}.  You cannot use <Esc> for {char}, so 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 table may be
  94. mangled if you look at it on a system that does not support digraphs or if you
  95. print this file.
  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.