sponsor Vim development Vim logo Vim Book Ad

sourcebeautify.vim : make your source code pretty in vim

 script karma  Rating 47/27, Downloaded by 4548  Comments, bugs, improvements  Vim wiki

created by
yf liu
script type
Website: https://github.com/michalliu/sourcebeautify.vim

This script can beautify html,css,javascript,json files

To support json file, your need add following code to your vimrc
au BufRead,BufNewFile *.json setf json

I suggest to use json.vim http://www.vim.org/scripts/script.php?script_id=1945

Just hit


to see what happens
install details
this plugin requires jsruntime http://www.vim.org/scripts/script.php?script_id=4050 and jsoncodecs http://www.vim.org/scripts/script.php?script_id=4056 installed

put sourcebeautify to $VIM/plugin

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
sourcebeautify.zip 2.0 2014-06-18 7.0 yf liu fix css beautify media query
sourcebeautify.zip 1.9 2014-06-17 7.0 yf liu Using linux line endings
sourcebeautify.zip 1.8 2014-06-16 7.0 yf liu supports beautify SQL,XML files
sourcebeautify.zip 1.3 2012-05-29 7.0 yf liu beautify JSON bug fix ( jsonlint issue 22 )
sourcebeautify.zip 1.2 2012-05-27 7.0 yf liu switch to use linux line ending
sourcebeautify.zip 1.1 2012-05-26 7.0 yf liu add beautifier and error checker for json file which is powered by jsonlint https://github.com/zaach/jsonlint
sourcebeautify.zip 1.0 2012-05-21 7.0 yf liu Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github