Josh Lane Code that I felt like sharing

Lazy pinky workarounds

I have a tendency to keep my right pinky down on the shift key when typing : to enter vim command mode. This causes my command to start with a capital letter, which is rarely useful. Besides focusing more on lifting it up more quickly I have configured vim to figure out what my intentions really are.

My most commonly misspelled commands are:

  • :Wa which is intended to be :wa - write all files
  • :W which is intended to be :w - write current buffer
  • :E which is intended to be :e - open a file

I’ve remapped the previous errored commands to be their intended targets by adding

to my ~/.vimrc

If you find this useful, all my dotfiles are public