Last Updated: February 25, 2016
·
12.05K
· jasonseney

Replace double quotes with single quotes in Vim

Vim command:

%s/\"\([^"]*\)\"/'\1'/g

Before: var string = "This is inside some quotes";

After: var string = 'This is inside some quotes';