1

I am trying to map the caps lock key to do an action in MacVIM, but I cannot figure out how to map that key.

trobrock
  • 46,549
  • 11
  • 40
  • 46

2 Answers2

1

It is not possible (unless there are big changes in mac version): vim uses outdated byte queue instead of keypress queue and CapsLock is not represented by any byte sequence.

// It is still possible to configure your system so that CapsLock will produce something that can be captured by vim.

ZyX
  • 52,536
  • 7
  • 114
  • 135
1

This SO question: Using Caps Lock as Esc in Mac OS X has some suggestions, which they characterize as a choice between "a complicated, half-baked solution or installing a third-party piece of hackery."

Community
  • 1
  • 1
bgporter
  • 35,114
  • 8
  • 59
  • 65