I am trying to indent in a sensible way this CSS file. My default editor is VIM. I tried multiple times using visual-select-all + =
, didn't work gg=G
didn't work either.
I have tried to use css.vim
but still nothing. Is there automated way to do this?
Use an external utility.
$ npm install cssbeautify
$ vim screen.css
:%!cssbeautify %
before
after