summaryrefslogtreecommitdiffstats
path: root/runtime/doc/digraph.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2004-10-07 21:02:47 +0000
committerBram Moolenaar <Bram@vim.org>2004-10-07 21:02:47 +0000
commit3fdfa4a9a52ab3d1a790262ee872a49853ad4626 (patch)
tree76f57a06a5f3b9e0abc15446b38722658fde7e1e /runtime/doc/digraph.txt
parente5f258eb4c4b87ea1d6f61c1a0a9deecbb5d9726 (diff)
updated for version 7.0017v7.0017
Diffstat (limited to 'runtime/doc/digraph.txt')
-rw-r--r--runtime/doc/digraph.txt27
1 files changed, 24 insertions, 3 deletions
diff --git a/runtime/doc/digraph.txt b/runtime/doc/digraph.txt
index 529b30d2da..ed4527175b 100644
--- a/runtime/doc/digraph.txt
+++ b/runtime/doc/digraph.txt
@@ -1,4 +1,4 @@
-*digraph.txt* For Vim version 7.0aa. Last change: 2001 Sep 03
+*digraph.txt* For Vim version 7.0aa. Last change: 2004 Oct 07
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -28,7 +28,8 @@ An alternative is using the 'keymap' option.
*E104* *E39*
:dig[raphs] {char1}{char2} {number} ...
Add digraph {char1}{char2} to the list. {number} is
- the decimal representation of the character.
+ the decimal representation of the character. Normally
+ it is the Unicode character, see |digraph-encoding|.
Example: >
:digr e: 235 a: 228
< Avoid defining a digraph with '_' (underscore) as the
@@ -48,7 +49,24 @@ In the middle of each column is the resulting character. This may be mangled
if you look at it on a system that does not support digraphs or if you print
this file.
-The decimal number is the number of the character.
+ *digraph-encoding*
+The decimal number normally is the Unicode number of the character. Note that
+the meaning doesn't change when 'encoding' changes. The character will be
+converted from Unicode to 'encoding' when needed. This does require the
+conversion to be available, it might fail.
+
+When Vim was compiled without the +multi_byte feature, you need to specify the
+character in the encoding given with 'encoding'. You might want to use
+something like this: >
+
+ if has("multi_byte")
+ digraph oe 339
+ elseif &encoding == "iso-8859-15"
+ digraph oe 189
+ endif
+
+This defines the "oe" digraph for a character that is number 339 in Unicode
+and 189 in latin9 (iso-8859-15).
==============================================================================
2. Using digraphs *digraphs-use*
@@ -142,6 +160,9 @@ Example: a: is ä and o: is ö
These are the RFC1345 digraphs for the one-byte characters. See the output of
":digraphs" for the others. The characters above 255 are only available when
Vim was compiled with the |+multi_byte| feature.
+
+Exception: RFC1345 doesn't specify the euro sign. In Vim the digraph =e was
+added for this.
*digraph-table*
char digraph hex dec official name ~
^@ NU 0x00 0 NULL (NUL)