codegourmet

savory code and other culinary highlights

Vim: Staying on the Base Line

Staying on the touch-typing base line (a, s, d, f, ..) is strongly promoted by the Vim movement keys - but :w, ctrl, escape and more tend to distract my hand position. Here are some of the steps I took to deal with this:

  • map , to Leader
  • map Space to ^
  • map Control-m to save all
  • dual-map Caps Lock
  • map jj to Escape in insert mode
  • remap window focus movement
  • map Escape-Escape to nohlsearch

Unmasking Exceptions

Raising core StandardErrors can mask bugs in your code layer. But even re-raising exceptions from deeper service layers can mask errors that have nothing to do with the current exception use case.