I want to define a mapping in my .gvimrc such that if the last key pressed is held, the triggered action is repeated. Specifically, I want to do something like
map <SPACE>t :set transparency-=1
map <SPACE>T :set transparency+=1
for MacVim, but I want the transparency to continue to be decreased/increased when t/T are held (don't want to have to keep pressing the spacebar).
If you have a suggestion for a nicer way to adjust the transparency, I would appreciate that also.
Separately, it would be nice to be able be able to type 20 SPACE t and have the transparency decreased by 20; however, when I try I get an
E481: No range allowed.
How do I enable range specification?
Thanks a lot.