Last Updated: February 25, 2016
·
446
· w0ng

Map Caps Lock to Ctrl

Ctrl commands are used frequently in vim.
The ones I use daily are Ctrl+d,u,f,b,n,p,[,].
Your left pinky will thank you for the reduced travel distance.

For Linux/OSX, add to ~/.xinitrc:

setxkbmap -option ctrl:nocaps

For Windows, add to your AutoHotkey script:

Capslock::Ctrl