comparison rc/vimrc @ 539:05785a85d603

Fix json syntax highlighter config.
author edogawaconan <me@myconan.net>
date Mon, 05 Jan 2015 23:00:11 +0900
parents f5b6dba3308b
children 50fd59a959ea
comparison
equal deleted inserted replaced
538:f5b6dba3308b 539:05785a85d603
75 autocmd FileType json set formatoptions=tcq2l 75 autocmd FileType json set formatoptions=tcq2l
76 autocmd FileType json set textwidth=78 shiftwidth=2 76 autocmd FileType json set textwidth=78 shiftwidth=2
77 autocmd FileType json set softtabstop=2 tabstop=8 77 autocmd FileType json set softtabstop=2 tabstop=8
78 autocmd FileType json set expandtab 78 autocmd FileType json set expandtab
79 autocmd FileType json set foldmethod=syntax 79 autocmd FileType json set foldmethod=syntax
80
81 " required by syntax file
82 " reference: https://github.com/elzr/vim-json/blob/master/ftplugin/json.vim
83 let g:vim_json_syntax_conceal = 1
80 augroup END 84 augroup END
81 au! BufRead,BufNewFile *.json set filetype=json
82 autocmd BufRead,BufNewFile supervisord.conf :set ft=dosini 85 autocmd BufRead,BufNewFile supervisord.conf :set ft=dosini
83 autocmd BufRead,BufNewFile Gemfile :set ft=ruby 86 autocmd BufRead,BufNewFile Gemfile :set ft=ruby
84 autocmd BufRead,BufNewFile config.ru :set ft=ruby 87 autocmd BufRead,BufNewFile config.ru :set ft=ruby
85 autocmd BufRead,BufNewFile crontab.* :set noet 88 autocmd BufRead,BufNewFile crontab.* :set noet
86 autocmd BufRead,BufNewFile crontab :set noet 89 autocmd BufRead,BufNewFile crontab :set noet
92 autocmd BufRead,BufNewFile *.coffee :set ft=coffee 95 autocmd BufRead,BufNewFile *.coffee :set ft=coffee
93 autocmd BufRead,BufNewFile *.erb :set ft=eruby 96 autocmd BufRead,BufNewFile *.erb :set ft=eruby
94 autocmd BufRead,BufNewFile *.scss :set ft=scss 97 autocmd BufRead,BufNewFile *.scss :set ft=scss
95 autocmd BufRead,BufNewFile *.slim :set ft=slim 98 autocmd BufRead,BufNewFile *.slim :set ft=slim
96 autocmd BufRead,BufNewFile *.blade.php :set ft=blade 99 autocmd BufRead,BufNewFile *.blade.php :set ft=blade
100 autocmd BufNewFile,BufRead *.json set filetype=json
101 autocmd BufNewFile,BufRead *.jsonp set filetype=json
97 endif 102 endif
98 103
99 if has('autocmd') 104 if has('autocmd')
100 "Restore cursor position 105 "Restore cursor position
101 set viminfo='10,\"100,:20,%,n~/.viminfo 106 set viminfo='10,\"100,:20,%,n~/.viminfo