Vim: recognise Sublime configs as JSONC, allow trailing commas in JSONC

This commit is contained in:
Rei Meliesie 2026-09-17 12:17:36 +02:00
commit 126f617be4

View file

@ -116,6 +116,11 @@
" history file. " history file.
let g:netrw_home = '$XDG_STATE_HOME/vim' let g:netrw_home = '$XDG_STATE_HOME/vim'
" Sublime settings files can have comments.
autocmd BufNewFile,BufRead *.sublime-settings set filetype=jsonc
" Most software that reads JSON with comments also accepts trailing commas.
autocmd FileType jsonc highlight link jsonTrailingCommaError Normal
set nowrap set nowrap
set hlsearch set hlsearch
set tabstop=2 set tabstop=2