runtime(zimbu): set 'commentstring' option in ftplugin
closes: #17478
Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/ftplugin/zimbu.vim b/runtime/ftplugin/zimbu.vim
index 2ce08e5..1b5caf6 100644
--- a/runtime/ftplugin/zimbu.vim
+++ b/runtime/ftplugin/zimbu.vim
@@ -1,8 +1,10 @@
" Vim filetype plugin file
" Language: Zimbu
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2023 Aug 10
+" Last Change: 2025 Jun 08
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
+" Note: Zimbu was the programming language invented by Bram,
+" but it seems to be lost by now
" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
@@ -16,7 +18,7 @@
let s:cpo_save = &cpo
set cpo-=C
-let b:undo_ftplugin = "setl fo< com< ofu< efm< tw< et< sts< sw< | if has('vms') | setl isk< | endif"
+let b:undo_ftplugin = "setl fo< com< cms< ofu< efm< tw< et< sts< sw< | if has('vms') | setl isk< | endif"
" Set 'formatoptions' to break comment lines but not other lines,
" and insert the comment leader when hitting <CR> or using "o".
@@ -30,6 +32,7 @@
" Set 'comments' to format dashed lists in comments.
" And to keep Zudocu comment characters.
setlocal comments=sO:#\ -,mO:#\ \ ,exO:#/,s:/*,m:\ ,ex:*/,:#=,:#-,:#%,:#
+setlocal commentstring=#\ %s
setlocal errorformat^=%f\ line\ %l\ col\ %c:\ %m,ERROR:\ %m