On 01/12/12 14:56, Marcin Szamotulski wrote:
Hello,

Searching for a digraph usually is quite hard, since there are so many
of them, and the are aligned in columns where only one column is
important when one is looking for a particular glyph.  It would be nice
if that column was highlighted - searching would be a lot easier.

Regards,
Marcin


In addition to all the answers you already got, all standard digraphs are listed in the output of :digraphs in Unicode codepoint order. This makes it easy to find a digraph when you know the Unicode codepoint, except that the output of :dig gives the codepoint numbers in decimal while the usual custom is to give them in hex. Happily, Vim can easily convert hex to decimal: for instance, if you know that UPWARDS ARROW is U+2191, type :echo 0x2191 and Vim will answer 8593. Searching the output of :dig for 8593 tells you that -! is the digraph for an upwards arrow.

To find out the Unicode codepoint for the character you need, I recommend:

http://www.unicode.org/charts/ (by family of scripts or of symbols)
http://www.unicode.org/charts/charindex.html (by name)

The latter indexes the names by all the important words in them, and often according to several different alternate names for a single codepoint. Both these pages contain links to glyph charts in PDF.

This, of course, is for when you need to use a given codepoint repetitively. If you need it only once, see
        :help i_CTRL-V_digit
about how to input the character (in Insert/Replace or Command-line modes) by using the Unicode hex value directly.


Best regards,
Tony.
--
Cerebus:        I'd love to lick apricot brandy out of your navel.
Jaka:           Look, Cerebus-- Jaka has to tell you ... something
Cerebus:        If Cerebus had a navel, would you lick apricot brandy
                out of it?
Jaka:           Ugh!
Cerebus:        You don't like apricot brandy?
                -- Cerebus #6, "The Secret"

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui