runtime(zimbu): set 'commentstring' option in ftplugin
Commit:
https://github.com/vim/vim/commit/85f0711b4eb2f4a27db4b9d8fc2588bfa3c81caf
Author: Riley Bruins <
rib...@hotmail.com>
Date: Thu Jun 12 22:05:31 2025 +0200
runtime(zimbu): set 'commentstring' option in ftplugin
closes:
https://github.com/vim/vim/issues/17478
Signed-off-by: Riley Bruins <
rib...@hotmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/ftplugin/zimbu.vim b/runtime/ftplugin/zimbu.vim
index 2ce08e5ca..1b5caf6a3 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 <
Br...@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 b:did_ftplugin = 1
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 @@ endif
" 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