中国留学生替考案:首名认罪留美学生将被遣返替考枪手
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 29, 2022 at 13:01 | comment | added | SebMa |
In the old VIM v7.4 there is no "json.vim", I had to add download it from VIM v8.0 and put it in my ~/.vim/syntax/ . Thanks for the :h ftdetect , I'll look into.
|
|
Jun 29, 2022 at 12:43 | comment | added | Matt |
In case, json extension was not properly auto-detected in old version such as v7.4, you'd better add the filetype setting under "ftdetect" subdir, not into your vimrc. See :h ftdetect specifically for explanations.
|
|
Jun 29, 2022 at 12:34 | comment | added | Matt |
@SebMa That should work by default. Check :filetype output and make sure to read :h filetype.txt .
|
|
Jun 29, 2022 at 12:25 | comment | added | SebMa |
Oh I see. So I guess I'll put that command in my vimrc instead : autocmd BufNewFile,BufRead *.json set filetype=json . Thanks for your help.
|
|
Jun 29, 2022 at 12:05 | history | answered | Matt | CC BY-SA 4.0 |