(Uploaded by JohnBot from a locally edited file) |
Carpetsmoker (talk | contribs) (Expand to general digraph tip) |
||
Line 1: | Line 1: | ||
− | __NOTOC__ |
||
{{TipImported |
{{TipImported |
||
|id=51 |
|id=51 |
||
Line 10: | Line 9: | ||
|rating=175/52 |
|rating=175/52 |
||
}} |
}} |
||
+ | To enter "special" characters such as the Euro symbols or copyright symbol, or diacritic marks such as the German umlaut or accent grâve <tt>digraphs</tt> can be used. |
||
− | To enter German umlauts, or other accented characters not available on your keyboard, use ''digraphs''. |
||
− | + | Digraphs work by entering pressing CTRL-K and a two letter combination, for example, in insert mode type: |
|
<pre> |
<pre> |
||
CTRL-K a: |
CTRL-K a: |
||
Line 20: | Line 19: | ||
You can also set the digraph option: |
You can also set the digraph option: |
||
− | + | tt>>:set digraph</tt> (or <tt>:set dg</tt>) |
|
With the digraph option set you can enter |
With the digraph option set you can enter |
||
Line 29: | Line 28: | ||
to give the same result. |
to give the same result. |
||
− | To list the currently defined digraphs type |
+ | To list the currently defined digraphs type: |
− | + | <tt>:dig[raphs]</tt> |
|
+ | Here is a small example output of the <tt>:digraphs</tt> command: |
||
− | ==References== |
||
+ | <pre> |
||
+ | Ct ¢ 162 Pd £ 163 Cu ¤ 164 Ye ¥ 165 |
||
+ | e! è 232 e' é 233 e> ê 234 e: ë 235 |
||
+ | </pre> |
||
+ | |||
+ | The first two characters in each column are the characters you have to type to |
||
+ | enter the digraph.<br /> |
||
+ | In the middle of each column is the resulting character.<br /> |
||
+ | The decimal number normally is the Unicode number of the character. |
||
+ | |||
+ | ==See also== |
||
+ | *{{help|digraph-table}} |
||
*{{help|digraph.txt}} |
*{{help|digraph.txt}} |
||
*{{help|digraphs-changed}} Vim 6.0 and later use the [http://www.ietf.org/rfc/rfc1345.txt RFC1345] mnemonics. |
*{{help|digraphs-changed}} Vim 6.0 and later use the [http://www.ietf.org/rfc/rfc1345.txt RFC1345] mnemonics. |
||
==Comments== |
==Comments== |
||
− | '''TODO''' Rename tip - it's about accented characters and digraphs. |
||
− | |||
− | ---- |
||
− | A little supplement: |
||
− | |||
− | The German umlauts are ä/Ä, ö/Ö, ü/Ü, and moreover there is 'ß'. |
||
− | |||
− | In insert mode, these are CTRL-K plus: |
||
− | a: A: |
||
− | o: O: |
||
− | u: U: |
||
− | ss |
||
− | |||
− | ====German examples==== |
||
− | #Ähnlich = similar |
||
− | #Röhre = tube |
||
− | #müde = tired |
||
− | #Straße = street |
||
− | |||
− | ====French examples==== |
||
− | #René - popular first name |
||
− | #Café - coffee house |
||
− | #Ampère - French physicist, 1775 - 1836 |
||
− | |||
− | The 'e' with a hat (ê) is not German, it's French. |
||
− | |||
− | øl in Danish is beer. |
||
− | |||
− | Joachim Hofmann (Schuttberg) |
||
− | ---- |
||
[[Category:Encoding]] |
[[Category:Encoding]] |
Revision as of 08:06, 17 April 2008
created March 15, 2001 · complexity basic · author Anonymous · version 5.7
To enter "special" characters such as the Euro symbols or copyright symbol, or diacritic marks such as the German umlaut or accent grâve digraphs can be used.
Digraphs work by entering pressing CTRL-K and a two letter combination, for example, in insert mode type:
CTRL-K a: CTRL-K e>
to give ä and ê.
You can also set the digraph option: tt>>:set digraph (or :set dg)
With the digraph option set you can enter
a <BS> : e <BS> >
to give the same result.
To list the currently defined digraphs type: :dig[raphs]
Here is a small example output of the :digraphs command:
Ct ¢ 162 Pd £ 163 Cu ¤ 164 Ye ¥ 165 e! è 232 e' é 233 e> ê 234 e: ë 235
The first two characters in each column are the characters you have to type to
enter the digraph.
In the middle of each column is the resulting character.
The decimal number normally is the Unicode number of the character.
See also
- :help digraph-table
- :help digraph.txt
- :help digraphs-changed Vim 6.0 and later use the RFC1345 mnemonics.