• Aphorisms
  • Coffee and Chords
  • Ideas+Living
  • Network+Automation
  • About
Menu

Francis Luong

  • Aphorisms
  • Coffee and Chords
  • Ideas+Living
  • Network+Automation
  • About

Blog: Ideas and Living

Things I notice, preparing our minds, and leading our lives.


Vim replace to switch 2-space indents to 4-space

April 14, 2014

You pretty much have to escape all of the regexp characters.

%s/^\( \+\)/\1\1/g

Tags vim
← Excel VBA to format incoming CSVUnit testing with tcltest →