diff options
author | Teddy Wing | 2019-11-15 20:00:10 +0100 |
---|---|---|
committer | Teddy Wing | 2019-11-18 23:20:31 +0100 |
commit | c035f993835f70c2e330ac217416a5d91dc0d352 (patch) | |
tree | d63f12dde4ab7b1c987f39c0bc6a0c4debfb343e | |
parent | 5076f901024ae7c419de21e920f911a2a2484d11 (diff) | |
download | dotvim-c035f993835f70c2e330ac217416a5d91dc0d352.tar.bz2 |
ftdetect/json.vim: Disable on Vim < 8
Recent Vims have a built-in JSON syntax plugin which is a little easier
to read than the JavaScript highlighting. Use the built-in one on Vim 8
and higher.
-rw-r--r-- | ftdetect/json.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ftdetect/json.vim b/ftdetect/json.vim index 4db08ed..7dd9f82 100644 --- a/ftdetect/json.vim +++ b/ftdetect/json.vim @@ -1 +1,3 @@ -autocmd BufRead,BufNewFile *.json set filetype=json syntax=javascript +if v:version < 800 + autocmd BufRead,BufNewFile *.json set filetype=json syntax=javascript +endif |