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

Config number of file descriptors on Linux

Check file descriptor limit for a process. Vary depending on owner of the process $ cat /proc/{process-id}/limits Check current number of...