Beginner vim snippets. I am sure there are better ways to do some of these.
s/, /\r/
-- remove n characters from the end of a line
s/.\{n}$//
s/\(characters\)\(.*$\)/\2/g
s/\(.*: \)\('#.*'\)\(,\?\)/\1{'element': \2, 'default': ''}\3/g
ctrl v
j to where u want
shift i
esc
:w !sudo tee %