tyru | 1 Dec 2011 14:42
Picon
Gravatar

[PATCH] add {dict} argument to getcharmod()

Hi list.

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

--
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
Attachment (getcharmod-dict-arg.patch): text/x-patch, 3190 bytes

Gmane