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';
Written by Jason Seney
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Regex
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#