Prefix
- All keybindings must be easy to access without causing strain on any finger. Therefore, completely avoiding the ‘control’ keys.
- Most accessible modifier key is the ‘left alt’, hence choosing the
prefix key as alt + i. Though ‘alt + p’ makes more sense and easy to remember, but its easy reaching the ‘i’ key using your long middle finger than ‘p’ with your little finger. Convenience takes priority here as prefix key is the most used binding.
Panes
- It’s intuitive to use ‘-’ and ‘|’ for horizontal and vertical splits but the keys are far and cause little strain. Hence I prefer
prefix + h for horizontal split and prefix + v for vertical split. Easy to remember, but you gotta always remember, “horizontal split means a new horizontal boundary line” below your current pane, and not a new pane horizontally right to your current pane.
- It’s intuitive to use arrow keys to switch between panes but it makes you slide your right hand all the way to the right away from it’s default position on
jkl;, not very convenient as this is a commonly used action. Hence, I prefer vim-like bindings for 4 directions. alt + hjkl for switching to the left/below/above/right pane.
- Pane resizing → this is one of the underrated but very useful actions. I again use
hjkl to resize accordingly.
alt + shift + l → resize by moving the vertical boundary rightwards by 5 chars
alt + shift + h → resize by moving the vertical boundary leftwards by 5 chars
alt + shift + j → resize by moving the horizontal boundary downwards by 1 line
alt + shift + k → resize by moving the horizontal boundary upwards by 1 line
Windows
- Create a new windows →
prefix + c
- Switch to next window →
prefix + n
- Switch to previous windows →
prefix + p