aboutsummaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorTeddy Wing2019-11-15 20:00:10 +0100
committerTeddy Wing2019-11-18 23:20:31 +0100
commitc035f993835f70c2e330ac217416a5d91dc0d352 (patch)
treed63f12dde4ab7b1c987f39c0bc6a0c4debfb343e /ftdetect
parent5076f901024ae7c419de21e920f911a2a2484d11 (diff)
downloaddotvim-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.
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/json.vim4
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