diff options
author | Riley Bruins <ribru17@hotmail.com> | 2024-05-20 05:03:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 14:03:46 +0200 |
commit | 1b5e3d21f6f321824b3c4552a9fff24feeb64aab (patch) | |
tree | 02a44e73331750e89e635d8871096ea0bdf97ff9 /runtime | |
parent | c95e64f41f7f6d1bdc95b047ae9b369743c8637b (diff) |
runtime(v): include basic v ftplugin for comment support (#14806)
Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/ftplugin/v.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/runtime/ftplugin/v.vim b/runtime/ftplugin/v.vim new file mode 100644 index 0000000000..4d4f60d797 --- /dev/null +++ b/runtime/ftplugin/v.vim @@ -0,0 +1,15 @@ +" Vim filetype plugin +" Language: v +" Maintainer: Riley Bruins <ribru17@gmail.com> +" 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<' |