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