aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-04-22 23:41:31 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-04-23 09:38:46 +0200
commitaef120d1e94e83a367a631d6bc8ce0b4a64f9dbd (patch)
tree7148b12bcf2c14da98b4d67a1225152499661875 /runtime/ftplugin
parent3305bb9e4175837f0fb37d46d93568da39067677 (diff)
downloadrneovim-aef120d1e94e83a367a631d6bc8ce0b4a64f9dbd.tar.gz
rneovim-aef120d1e94e83a367a631d6bc8ce0b4a64f9dbd.tar.bz2
rneovim-aef120d1e94e83a367a631d6bc8ce0b4a64f9dbd.zip
vim-patch:9.1.0366: filetype: ondir files are not recognized
Problem: filetype: ondir files are not recognized Solution: Detect '.ondirrc' as ondir filetype (Jon Parise) closes: vim/vim#14604 https://github.com/vim/vim/commit/ea999037a41292b3d3e00700a87a82fe5d2c12b2 Co-authored-by: Jon Parise <jon@indelible.org>
Diffstat (limited to 'runtime/ftplugin')
-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: