Christian Brabandt wrote:

> On Fr, 13 Apr 2012, Bram Moolenaar wrote:
> 
> > Can we use another command to list user-defined digraphs?  Perhaps
> > ":dig ?"?
> > 
> > This patch would also need documentation.  And a test would be good too.
> 
> Updated patch.
> The patch introduces the following changes:
> 1) :dig?                    print only user-defined digraphs
> 2) :dig? <char1>[<char2>]   print an exact match, if 2 chars are given,
>                             else print all digraphs matching char1
> 3) :dig? Number             print digraph for decimal value Number
> 4) :dig!                    clear all user-defined digraphs
> 5) :dig! <char1><char2>     clear user-defined digraph <char1><char2>
> 6) documentation update
> 7) including a test (test85)

Thanks for the quick update.

We don't use ? like this in any command, but somehow it feels right. Or
would there be something better?

":dig ? Number" is OK, but this looks like it only works for user
digraps.  I suppose leaving out the ? has the problem that it would look
like defining a digraph, although ":dig 12" currently gives an error.
So perhaps we can use that.

-- 
WOMAN:   Well, 'ow did you become king then?
ARTHUR:  The Lady of the Lake, [angels sing] her arm clad in the purest
         shimmering samite, held aloft Excalibur from the bosom of the water
         signifying by Divine Providence that I, Arthur, was to carry
         Excalibur.  [singing stops] That is why I am your king!
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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