summaryrefslogtreecommitdiff
path: root/runtime/ftplugin/jsonnet.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-10 13:13:14 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-10 13:13:14 +0100
commit71b6d3397649fed68ef587aa863fcbdf5fdb057a (patch)
treefe1de667a3a2f1a69ad6533ab87be8e8c5c33273 /runtime/ftplugin/jsonnet.vim
parent2da11a4124989e3be917fa8024025d2e1452b363 (diff)
downloadvim-git-71b6d3397649fed68ef587aa863fcbdf5fdb057a.tar.gz
Update runtime files
Diffstat (limited to 'runtime/ftplugin/jsonnet.vim')
-rw-r--r--runtime/ftplugin/jsonnet.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/ftplugin/jsonnet.vim b/runtime/ftplugin/jsonnet.vim
new file mode 100644
index 000000000..1e621e186
--- /dev/null
+++ b/runtime/ftplugin/jsonnet.vim
@@ -0,0 +1,17 @@
+" Vim filetype plugin
+" Language: Jsonnet
+" Maintainer: Cezary Drożak <cezary@drozak.net>
+" URL: https://github.com/google/vim-jsonnet
+" Last Change: 2022-09-08
+
+" Only do this when not done yet for this buffer
+if exists("b:did_ftplugin")
+ finish
+endif
+
+" Don't load another plugin for this buffer
+let b:did_ftplugin = 1
+
+setlocal commentstring=//\ %s
+
+let b:undo_ftplugin = "setlocal commentstring<"