summaryrefslogtreecommitdiff
path: root/ftplugin/pvx.vim
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-06-23 16:38:48 -0400
committerCalvin Morrison <calvin@pobox.com>2026-06-23 16:38:48 -0400
commit66818f40225eb2c2722ba62a3743e478d9111b03 (patch)
tree7dafd5994668a56578418ceea069bc7d8d020f18 /ftplugin/pvx.vim
Add vim syntax and indent support for ProvideX/PVX source filesHEADmaster
Highlights comments, strings, labels, control flow, and the object method-call operator; indents to match the convention encoded in native-sage-connector's formatpvx.pl (one tab per block level). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'ftplugin/pvx.vim')
-rw-r--r--ftplugin/pvx.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/ftplugin/pvx.vim b/ftplugin/pvx.vim
new file mode 100644
index 0000000..8134126
--- /dev/null
+++ b/ftplugin/pvx.vim
@@ -0,0 +1,14 @@
+" Filetype settings for ProvideX / PVX source files.
+if exists("b:did_ftplugin")
+ finish
+endif
+let b:did_ftplugin = 1
+
+setlocal commentstring=!\ %s
+setlocal comments=:!
+
+" formatpvx.pl indents with one literal tab per level; match that.
+setlocal noexpandtab
+setlocal tabstop=4
+setlocal shiftwidth=4
+setlocal softtabstop=4