H J K L for your windows: vim style window management on a Mac
If your fingers live on H J K L, arrow keys for windows feel slow. How to drive windows on a Mac with vim style keys, no config file required.
Vim users move with H J K L without thinking. Tiling window managers on Linux mostly use the same keys, so switching to arrows on a Mac feels like a step back.
The usual Mac route
Tools like Karabiner Elements can remap keys system wide, and several window managers read their keys from a config file. Both work, and both are something to maintain.
Built in to ClutterFreeMac
| Keys | Moves focus |
|---|---|
⌃ ⌥ H | Left |
⌃ ⌥ J | Down in a stack |
⌃ ⌥ K | Up in a stack |
⌃ ⌥ L | Right |
Turn them on with one click, Also use H J K L in Settings, Shortcuts. They work alongside the arrows; every action can have more than one shortcut. Add ⇧ to move the window instead of the focus. Change any of them in Settings, Shortcuts by pressing the new keys.
More on this: Set up a hyper key for window shortcuts on a Mac.
Questions
Can I use H J K L to switch windows on a Mac?
Not by default in macOS. ClutterFreeMac supports H J K L for moving focus, alongside the arrow keys.
Read next
- Guide
Set up a hyper key for window shortcuts on a Mac
Turn Caps Lock into a hyper key so window shortcuts never clash with app shortcuts. How it works, free ways to set it up, and a layout of keys that stays easy.
Read › - Guide
The best window managers for Mac, by how you work
Rectangle, Loop or Moom to snap, AeroSpace or Amethyst to tile, ClutterFreeMac when windows should never shrink, which are free, and the best for a MacBook.
Read › - Guide
Every Mac keyboard shortcut for managing windows
Switch, hide, minimise, tile and find windows on a Mac without the mouse. The built in shortcuts, in one table, plus the ones a window manager adds.
Read ›