Tim Chase wrote:
I'm running Vim 6.4 on Windows 2000. When I'm using GVim as a normal
user, I can hear the beeping noises (for example, if I'm on the last
line and then press 'j'). However, when I'm logged in as
Administrator, I never hear any beeping noises.
I made a few changes to my _vimrc file, but the file is shared by all
users, and none of the changes have to do with the beep, so I don't
know why Administrator can't hear the beep.
Anyone know what's going on? Thanks.
What are your registry settings for
\HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default
when logged in...both as yourself, and as administrator?
They were almost the same... except that the type for .Current was
different. For the normal user, the type for the .Current default key
was REG_EXPAND_SZ. For the Administrator, it was REG_SZ. I exported
those keys for the 2 users, and there was a difference in how they were
stored.
This was the export for the normal user:
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default]
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\.Current]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,6d,00,65,00,64,00,69,00,61,00,5c,00,64,00,69,00,6e,00,67,00,2e,00,\
77,00,61,00,76,00,00,00
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\.Default]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,6d,00,65,00,64,00,69,00,61,00,5c,00,64,00,69,00,6e,00,67,00,2e,00,\
77,00,61,00,76,00,00,00
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\Utopia0]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,6d,00,65,00,64,00,69,00,61,00,5c,00,55,00,74,00,6f,00,70,00,69,00,\
61,00,20,00,44,00,65,00,66,00,61,00,75,00,6c,00,74,00,2e,00,77,00,61,00,76,\
00,00,00
This was the export for Administrator:
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default]
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\.Current]
@="%SystemRoot%\\media\\ding.wav"
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\.Default]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,6d,00,65,00,64,00,69,00,61,00,5c,00,64,00,69,00,6e,00,67,00,2e,00,\
77,00,61,00,76,00,00,00
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\.Default\Utopia0]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,6d,00,65,00,64,00,69,00,61,00,5c,00,55,00,74,00,6f,00,70,00,69,00,\
61,00,20,00,44,00,65,00,66,00,61,00,75,00,6c,00,74,00,2e,00,77,00,61,00,76,\
00,00,00
I deleted the key for the Administrator, and then imported the normal
user's key, and it started working! I could hear the bell in GVim! I'm
not sure how that one value had the wrong type for Administrator, but at
least I know the fix now. Thanks Tim!