Last Updated: February 25, 2016
·
12.19K
· 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';