summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/ondir.vim
diff options
context:
space:
mode:
authorJon Parise <jon@indelible.org>2024-04-22 21:07:41 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-22 21:07:41 +0200
commitea999037a41292b3d3e00700a87a82fe5d2c12b2 (patch)
tree5842f54429416d8929e3d73d1857cad58ec42dd6 /runtime/ftplugin/ondir.vim
parent6b13e3d4e46393b3a35eed7c27ae020bcbd46a9b (diff)
patch 9.1.0366: filetype: ondir files are not recognizedv9.1.0366
Problem: filetype: ondir files are not recognized Solution: Detect '.ondirrc' as ondir filetype (Jon Parise) closes: #14604 Signed-off-by: Jon Parise <jon@indelible.org> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/ftplugin/ondir.vim')
-rw-r--r--runtime/ftplugin/ondir.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/ftplugin/ondir.vim b/runtime/ftplugin/ondir.vim
new file mode 100644
index 0000000000..0854578c91
--- /dev/null
+++ b/runtime/ftplugin/ondir.vim
@@ -0,0 +1,18 @@
+" Vim filetype plugin file
+" Language: ondir <https://github.com/alecthomas/ondir>
+" Maintainer: Jon Parise <jon@indelible.org>
+
+if exists('b:did_ftplugin')
+ finish
+endif
+
+let s:cpo_save = &cpoptions
+
+setlocal comments=:# commentstring=#\ %s
+
+let b:undo_ftplugin = 'setl comments< commentstring<'
+
+let &cpoptions = s:cpo_save
+unlet s:cpo_save
+
+" vim: et ts=4 sw=2 sts=2: