C to VimDict
Convert a C data structure to a Vimscript dictionary.
Start file
{ "Return", '\n', }, { "ampersand", '&', }, { "apostrophe", '\'', }, { "asciicircum", '^', }, { "asciitilde", '~', }, { "asterisk", '*', }, { "at", '@', }, { "backslash", '\\', },
End file
{ \ "\n" : 'Return', \ "&" : 'ampersand', \ "\'" : 'apostrophe', \ "^" : 'asciicircum', \ "~" : 'asciitilde', \ "*" : 'asterisk', \ "@" : 'at', \ "\\" : 'backslash', \}
View Diff
1,8c1,10 < { "Return", '\n', }, < { "ampersand", '&', }, < { "apostrophe", '\'', }, < { "asciicircum", '^', }, < { "asciitilde", '~', }, < { "asterisk", '*', }, < { "at", '@', }, < { "backslash", '\\', }, --- > { > \ "\n" : 'Return', > \ "&" : 'ampersand', > \ "\'" : 'apostrophe', > \ "^" : 'asciicircum', > \ "~" : 'asciitilde', > \ "*" : 'asterisk', > \ "@" : 'at', > \ "\\" : 'backslash', > \}
Solutions by @zulolosi:
Unlock 2 remaining solutions by signing in and submitting your own entry