The vim modeline settings options words appear in selected in red in the first line :
# vim: set ft=json noet:
I'm using vim 7.4 on CentOS Linux 7.9.
How can I disable that ?
JSON does not have any comments. Hence, the line is malformed and highlighted as an error.
You can disable this by setting let g:vim_json_warnings = 0
before opening the file. However, an error still an error, and your JSON parser may not be happy about that.
P.S. So this also means that there's no good way to insert a modeline into arbitrary JSON file.
autocmd BufNewFile,BufRead *.json set filetype=json
. Thanks for your help.
:filetype
output and make sure to read :h filetype.txt
.
:h ftdetect
specifically for explanations.
~/.vim/syntax/
. Thanks for the :h ftdetect
, I'll look into.
知了吃什么食物hcv8jop6ns3r.cn | 耳朵背后有痣代表什么hcv8jop1ns8r.cn | 血池是什么意思dayuxmw.com | 梦见大蛇是什么意思hcv7jop5ns2r.cn | 199是什么意思hcv7jop7ns3r.cn |
什么首阔步hcv8jop5ns7r.cn | 贫血吃什么比较好cl108k.com | 砍单是什么意思hcv8jop0ns4r.cn | 嗓子哑吃什么药hcv7jop6ns1r.cn | 免费婚检都检查什么项目hcv8jop4ns2r.cn |
代茶饮是什么意思hcv7jop5ns0r.cn | 岁月如梭是什么意思tiangongnft.com | 辣椒代表什么生肖hcv9jop3ns4r.cn | 乙肝小二阳是什么意思hcv7jop7ns1r.cn | 专科什么意思hcv8jop2ns4r.cn |
浅表性胃炎吃什么药好使hcv7jop6ns5r.cn | 日值上朔是什么意思hcv8jop2ns8r.cn | 雌激素低有什么症状hcv8jop4ns7r.cn | 眉毛中间长痘痘是什么原因yanzhenzixun.com | 做爱女生什么感觉hcv8jop8ns0r.cn |