I assume remapping caps lock is harder to do than any of the other keys as Vim doesn't let you remap it either. When I'm using Vim on Windows I use
AutoHotKey to map caps lock to esc with this script.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | classname = ""
keystate = ""
*Capslock::
WinGetClass, classname, A
if (classname = "Vim")
{
SetCapsLockState, Off
Send, {ESC}
}
else
{
GetKeyState, keystate, CapsLock, T
if (keystate = "D")
SetCapsLockState, Off
else
SetCapsLockState, On
return
}
return
|
Its a bit of a bulky solution but you should be able to replace
with
| if (classname = "4coder-win32-wndclass")
|
to get it to work with 4coder. I assume this is a feature Allen is planning to add in the future so something like this wouldn't be needed.