Monday, May 10, 2010

VIM - How to format and syntax highlight JSON file

  • Run this command in shell 
    sudo cpan JSON::XS
  • Put this line to ~/.vimrc 
    map <leader>jt <Esc>:%!json_xs -f json -t json-pretty<CR>
  • When want to format JSON file press

  • credit : “tidify” a json in vim
Syntax highlighting

Clojure how to get JVM options from inside application

(.getInputArguments ( Credit:  How to get vm arguments from inside of java applic...