Tyru wrote:

> I wrote a patch to add {dict} argument to getcharmod().
> `getcharmod(1)` returns Dictionary.
> 
> It is a hassle to see the modifier keys pressed
> because Vimscript does not have bitwise AND operator.
> If getcharmod() had the feature, it is no more necessary for yak shaving
> like this:
> https://github.com/tyru/stickykey.vim/blob/aabe981322e7be283b3fc005070e1f99f449558f/autoload/stickykey.vim#L87-L126

I don't like the function returning a different type depending on an
argument.  Can we use a getcharmoddict() function instead?

Another solution would be to add a bitwise AND operator.

Yet another solution to add a function that returns both the character
and its modifier.

-- 
hundred-and-one symptoms of being an internet addict:
226. You sit down at the computer right after dinner and your spouse
     says "See you in the morning."

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