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