Skip to main content
edited title
Link
Vivian De Smedt
  • 21.1k
  • 5
  • 22
  • 40

How can I map Alt-< or Alt->?

Source Link

How can I map Alt-< or Alt->

I try to create a mapping for Alt < and Alt >:

inoremap <M-<> foo-bar-baz
inoremap <M->> baz-bar-foo

This doesn't work, most probably because < and > are themselves characters used to define the mapping. So, how can I create such a mapping?