4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: The euro digraph doesn't always work.
12 Solution: Add an "e=" digraph for Unicode euro character and adjust the
14 Files: src/digraph.c, runtime/doc/digraph.txt
17 *** ../vim-6.3.034/src/digraph.c Wed Jun 9 14:56:25 2004
18 --- src/digraph.c Fri Mar 18 10:50:52 2005
25 + {'=', 'e', 0x20ac}, /* euro */
29 *** ../vim-6.3.034/runtime/doc/digraph.txt Wed Jun 9 14:56:28 2004
30 --- runtime/doc/digraph.txt Fri Mar 18 10:52:35 2005
33 ! *digraph.txt* For Vim version 6.3. Last change: 2001 Sep 03
36 VIM REFERENCE MANUAL by Bram Moolenaar
38 ! *digraph.txt* For Vim version 6.3. Last change: 2005 Mar 18
41 VIM REFERENCE MANUAL by Bram Moolenaar
45 :dig[raphs] {char1}{char2} {number} ...
46 Add digraph {char1}{char2} to the list. {number} is
47 ! the decimal representation of the character.
50 < Avoid defining a digraph with '_' (underscore) as the
53 :dig[raphs] {char1}{char2} {number} ...
54 Add digraph {char1}{char2} to the list. {number} is
55 ! the decimal representation of the character. Normally
56 ! it is the Unicode character, see |digraph-encoding|.
59 < Avoid defining a digraph with '_' (underscore) as the
62 if you look at it on a system that does not support digraphs or if you print
65 ! The decimal number is the number of the character.
67 ==============================================================================
68 2. Using digraphs *digraphs-use*
70 if you look at it on a system that does not support digraphs or if you print
74 ! The decimal number normally is the Unicode number of the character. Note that
75 ! the meaning doesn't change when 'encoding' changes. The character will be
76 ! converted from Unicode to 'encoding' when needed. This does require the
77 ! conversion to be available, it might fail.
79 ! When Vim was compiled without the +multi_byte feature, you need to specify the
80 ! character in the encoding given with 'encoding'. You might want to use
81 ! something like this: >
83 ! if has("multi_byte")
85 ! elseif &encoding == "iso-8859-15"
89 ! This defines the "oe" digraph for a character that is number 339 in Unicode
90 ! and 189 in latin9 (iso-8859-15).
92 ==============================================================================
93 2. Using digraphs *digraphs-use*
97 These are the RFC1345 digraphs for the one-byte characters. See the output of
98 ":digraphs" for the others. The characters above 255 are only available when
99 Vim was compiled with the |+multi_byte| feature.
103 + Exception: RFC1345 doesn't specify the euro sign. In Vim the digraph =e was
104 + added for this. Note the difference between latin1, where the digraph Cu is
105 + used for the currency sign, and latin9 (iso-8859-15), where the digraph =e is
106 + used for the euro sign, while both of them are the character 164, 0xa4.
109 char digraph hex dec official name ~
110 ^@ NU 0x00 0 NULL (NUL)
111 *** ../vim-6.3.034/src/version.c Fri Mar 11 19:16:20 2005
112 --- src/version.c Fri Mar 18 10:54:13 2005
116 { /* Add new patch number below this line */
122 Lawmakers made it obligatory for everybody to take at least one bath
123 each week -- on Saturday night.
124 [real standing law in Vermont, United States of America]
126 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
127 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
128 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
129 \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///