Hi Dominique!

On So, 09 Jan 2011, Dominique Pellé wrote:

> Many digraphs are chosen in a logical way. Sometimes
> it's enough to correctly guess what the digraph is, but not
> always.  When you can't completely guess, you can
> sometimes make a correct partial guess and being able
> to search then helps.

I agree, searching would help. In your case, my plugin unicode.vim
http://www.vim.org/scripts/script.php?script_id=2822 could also help:

> 
> 2 examples:
> 
> - I want to type the the angstrom symbol. I guess that the
>   digraph contains the letter 'a'. Searching with /a narrows
>   down the search. The digraph for the lowercase angstrom
>   symbol is 'aa' so my partial guess was right. But I would
>   not have guessed the full digraph.  Finding it in the output
>   of :digraph without being able to search was not simple.
>   I ended up doing a :redir of :digraph to be able to... search.

type a and press <C-X><C-G>. In the omni completion list select the 
glyph. Alternatively, set
:let g:showDigraphCode=1
and either enter the unicode codepoint or type the name and press 
<C-X><C-U>

In the preview window, you'll see the glyph and additionally the digraph 
char, that can be used to enter that glyph if one exists.

> 
> - I want to type a Greek pi letter (3.14...).  Same story:
>   I guess that the digraph contains p and I search for /p.
>   I end up finding it: p*. My partial guess was correct and
>   helped.

Again, p<C-X><C-G> would have shown you all digraphs, that can be 
entered with p

> Another use case is to search by copy/pasting the Unicode
> symbol from somewhere. If I search for angstrom on
> Wikipedia, I find its Unicode symbol.  But of course
> I don't want to do that all the time to enter that symbol.
> If I can search for the Unicode symbol in the output
> of :digraph, I can then use the more convenient
> digraph aa next time I need to type the character.

Use the unicode completion of the plugin, together with the codepoint or 
the name.

regards,
Christian

-- 
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