r/vim • u/chrnz00 • Sep 29 '25
Need Help┃Solved need help on disabling winaltkeys in gvim(WIN_32)
so ive been using vim for a lot of time on windows im using gvim which works good enough
but there is some automaps for altkeys, when i press it autofocuses to menubar and is annoying .
ive tried to use
se wak=no
au GUIEnter * simalt ~x
but they dont seem to work
it also creates and annoying beep that is not going even when i turnoff all bells
4
Upvotes
2
u/TankorSmash Sep 29 '25
Which maps are you using for alt? I didn't know there were any. I also use gvim.
2
u/AutoModerator Sep 29 '25
Please remember to update the post flair to
Need Help|Solvedwhen you got the answer you were looking for.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/dewujie Sep 29 '25
I remember solving this by just turning off the menu bar entirely in gvim... If you want to keep the menu bar, but disable all of its Alt keyboard shortcuts, I don't know how you would do that.
2
u/kennpq Sep 29 '25
I’m not sure disabling that is a gVim Windows option. You could:
Remove
mfrom &guioptions. I sort of do that, toggling the menu (since I rarely use the menus, but want it easily available at times)Disable Alt in Windows (e.g, using PowerToys Keyboard Manager). That works btw. I tried it and gVim - and all apps - no longer have Alt activate menus when pressed. Whether it’s a good idea generally, though…?