summaryrefslogtreecommitdiff
path: root/runtime/indent/json.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/indent/json.vim')
-rw-r--r--runtime/indent/json.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/indent/json.vim b/runtime/indent/json.vim
new file mode 100644
index 000000000..d50112b93
--- /dev/null
+++ b/runtime/indent/json.vim
@@ -0,0 +1,13 @@
+" Vim indent file
+" Language: JSON
+" Maintainer: David Barnett <daviebdawg+vim@gmail.com>
+" Last Change: 2014 Jul 16
+
+if exists('b:did_indent')
+ finish
+endif
+
+" JSON is a subset of JavaScript. JavaScript indenting should work fine.
+runtime! indent/javascript.vim
+
+let b:did_indent = 1