runtime(v): include basic v ftplugin for comment support (#14806)
Commit:
https://github.com/vim/vim/commit/1b5e3d21f6f321824b3c4552a9fff24feeb64aab
Author: Riley Bruins <[email protected]>
Date: Mon May 20 05:03:46 2024 -0700
runtime(v): include basic v ftplugin for comment support
(https://github.com/vim/vim/issues/14806)
Signed-off-by: Riley Bruins <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index d905618f7..477efc21c 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -230,6 +230,7 @@ runtime/ftplugin/tt2html.vim @petdance
runtime/ftplugin/typescript.vim @dkearns
runtime/ftplugin/typescriptreact.vim @dkearns
runtime/ftplugin/unison.vim @chuwy
+runtime/ftplugin/v.vim @ribru17
runtime/ftplugin/vdf.vim @ObserverOfTime
runtime/ftplugin/vim.vim @dkearns
runtime/ftplugin/wast.vim @rhysd
diff --git a/runtime/ftplugin/v.vim b/runtime/ftplugin/v.vim
new file mode 100644
index 000000000..4d4f60d79
--- /dev/null
+++ b/runtime/ftplugin/v.vim
@@ -0,0 +1,15 @@
+" Vim filetype plugin
+" Language: v
+" Maintainer: Riley Bruins <[email protected]>
+" Last Change: 2024 May 19
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+" Set 'comments' to format dashed lists in comments.
+" Also include ///, used for Doxygen.
+setl comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
commentstring=//\ %s
+
+let b:undo_ftplugin = 'setl com< cms<'
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1s91uz-00DEvE-A9%40256bit.org.