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>
This commit is contained in:
Riley Bruins
2025-06-12 22:05:31 +02:00
committed by Christian Brabandt
parent 91af4c4180
commit 85f0711b4e

View File

@ -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 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