Vim replace to switch 2-space indents to 4-space April 14, 2014 Francis Luong You pretty much have to escape all of the regexp characters. %s/^\( \+\)/\1\1/g