sqopga
Last Updated: February 25, 2016
·
3.747K
· jasonseney
Water

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';

Say Thanks
Respond
Filed Under