summaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-07-19 14:04:47 +0200
committerBram Moolenaar <Bram@vim.org>2014-07-19 14:04:47 +0200
commit07d87790f1e733d69bd7910bf049adeeb6d0f338 (patch)
treecfafa9324d4664657695a094a68107ad5e6279e4 /runtime/ftplugin
parenta04854932ec96ab48498fd4a5e8b5f4fd4df14cf (diff)
downloadvim-git-07d87790f1e733d69bd7910bf049adeeb6d0f338.tar.gz
Update runtime files. Make matchparen plugin backwards compatible.
Add json filetype.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/json.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/ftplugin/json.vim b/runtime/ftplugin/json.vim
new file mode 100644
index 000000000..c79b13fc6
--- /dev/null
+++ b/runtime/ftplugin/json.vim
@@ -0,0 +1,17 @@
+" Vim filetype plugin
+" Language: JSON
+" Maintainer: David Barnett <daviebdawg+vim@gmail.com>
+" Last Change: 2014 Jul 16
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+let b:undo_ftplugin = 'setlocal formatoptions< comments< commentstring<'
+
+setlocal formatoptions-=t
+
+" JSON has no comments.
+setlocal comments=
+setlocal commentstring=