summaryrefslogtreecommitdiff
path: root/mnv/runtime/ftplugin/scdoc.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/ftplugin/scdoc.mnv')
-rw-r--r--mnv/runtime/ftplugin/scdoc.mnv23
1 files changed, 23 insertions, 0 deletions
diff --git a/mnv/runtime/ftplugin/scdoc.mnv b/mnv/runtime/ftplugin/scdoc.mnv
new file mode 100644
index 0000000000..f8846892af
--- /dev/null
+++ b/mnv/runtime/ftplugin/scdoc.mnv
@@ -0,0 +1,23 @@
+" scdoc filetype plugin
+" Maintainer: Gregory Anders <contact@gpanders.com>
+" Last Updated: 2022 May 09
+" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
+" Upstream: https://github.com/gpanders/mnv-scdoc
+
+" 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 comments=b:;
+setlocal commentstring=;\ %s
+setlocal formatoptions+=t
+setlocal noexpandtab
+setlocal shiftwidth=0
+setlocal softtabstop=0
+setlocal textwidth=80
+
+let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<'