DEV Community

Kian
Kian

Posted on

Minimalist mac vim users: This might be your holy grail keyboard customization

I avoid messing with keybindings as much as possible, but there’s one customization every Mac user should consider.

Vim likes easy access to the Escape and Control keys. Both are hard to reach on a standard Mac keyboard.

The solution is incredibly elegant and simple:

Using Karabiner elements, configure it so that tapping Caps Lock is Escape, while holding it is Control.

This single shortcut makes Vim beautifully ergonomic. It has a downside – it’s not portable inside a vimrc. But if you’re not connecting to remote servers often it’s worth it.

Besides the vim benefits, it also lets you use convenient MacOS shortcuts without reaching all over with your pinkies

  • backspace via ‘Control + h’
  • forward delete via ‘Control + d’
  • jump to beginning of line: ‘Control + a’
  • jump to end of line via ‘Control + e’

That modification is found here

Top comments (0)