My mappings which contain Alt aren't working in vim when using in urxvt . They work fine in gvim . An example of such mapping

map <silent> <A-h> <C-w><

In insert mode when I type Alt-h , only h is printed. How do I need to configure urxvt such that mappings containing Alt work in vim? I am using Ubuntu.

Oops I set my modifier as super in urxvt. That's why none of the solutions were working for me. Make sure that you set the modifier as Alt to get the solutions proposed to work.