Vim: reformat CSS from one-line to multi-line
if the filetype has already been set as CSS
, you can try:
:%s/[{;}]/&\r/g|norm! =gg
at least it works for your example:
You can use cssbeautify:
:%! css-beautify --file -
if the filetype has already been set as CSS
, you can try:
:%s/[{;}]/&\r/g|norm! =gg
at least it works for your example:
You can use cssbeautify:
:%! css-beautify --file -