LoginSignup
1
3

More than 5 years have passed since last update.

Vim で JSON を書く環境を整える

Last updated at Posted at 2017-03-08

まず jsonlint を入れる

brew install jsonlint

.vimrc に以下の情報を追記

NeoBundle 'leshill/vim-json'  " デフォルトの syntax highlight が気に食わないので

autocmd BufNewFile,BufRead *.json set filetype=json

" syntastic の設定に下記を追記。
" 保存時に jsonlint でチェックするようにする
let g:syntastic_json_checkers=['jsonlint']

vim を起動し直して、

:NeoBundleInstall
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3