Vim: recognise Sublime configs as JSONC, allow trailing commas in JSONC
This commit is contained in:
parent
7ef9085efd
commit
126f617be4
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue