Re: emulating typewriter sound
- On 07/10/09 06:50, Wu, Yue wrote:
>There are the following problems (and possibly others) with this approach:
> On Wed, Oct 07, 2009 at 07:59:09AM +0800, bill lam wrote:
>> On Tue, 06 Oct 2009, Noel Henson wrote:
>>>> FWIW xset c didn't work for me. I'll happy to hear if there are
>>>> alternative ways to do it other than buying another keyboard.
>>> What desktop or window manager are you using? I believe you can set
>>> keyclicks in KDE3 and above. Perhaps Gnome can do the same.
>> I use dwm and don't use any desktop. AFAICS setting keyclicks in
>> desktops are just graphical frontend for setting xset. Incidentally I
>> googled and found others said that they cannot turn off that click.
> I think you can facility with the feature of lmap, binding the key you like to
> hear the sound to a return-expression type function which produce the sound then
> return the key you typed. It's a bit trivial. I do something similar with my
> script ywvim.
> :help lmap
> :help map.txt
>  http://www.vim.org/scripts/script.php?script_id=2662
* It doesn't work in Normal mode.
* Since it means creating a keymap which prefixes a BEL character to
every possible keypress (including nonprinting ones) and is otherwise a
no-op, you cannot use a _different_ keymap.
* Hitting a modifier key (Shift, Ctrl, Meta/Alt, Cmd, AltGr, CapsLock,
NumLock) never produces a click.
* Hitting Ctrl-V U 12345678 will produce zero clicks where the desired
amount is twelve. (Similarly, to use a more realistic example, Ctrl-V u
4e00 will produce zero clicks instead of seven, and I don't see how to
harness it to make at least six clicks and still produce the CJK
character meaning "one" without an amount of work totally out of
* The Ctrl-K key cannot be remapped, at least in Vim builds compiled
with +digraphs, unless there's been a change since Vim 6.1. (I've tried,
but not recently.)
My pen is at the bottom of a page,
Which, being finished, here the story ends;
'Tis to be wished it had been sooner done,
But stories somehow lengthen when begun.
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php