Syntax highlighting for JSON files

2 Points

Florian Beer Florian Beer

10 years ago

This autocmd sets JSON files to filetype javascript so you get pretty syntax highlighting without installing any plugins.

autocmd BufNewFile,BufRead *.json set ft=javascript