Thomson
Thomson

Reputation: 21674

Cannot map <A-w> in insert mode in gvim?

I want to map Alt+w as below, it it seems it doesn't work like other key combinations, such as which works well. What's the restriction for this key combination?

" below map doesn't work in gvim
inoremap <A-w> <C-o>w

Upvotes: 0

Views: 88

Answers (2)

majkinetor
majkinetor

Reputation: 9056

If on Windows, try set winaltkeys=no

Upvotes: 1

Kent
Kent

Reputation: 195229

if alt-w opens your gvim menu, you can add this:

set guioptions-=m

Upvotes: 1

Related Questions