From 85f0711b4eb2f4a27db4b9d8fc2588bfa3c81caf Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Thu, 12 Jun 2025 22:05:31 +0200 Subject: [PATCH] runtime(zimbu): set 'commentstring' option in ftplugin closes: #17478 Signed-off-by: Riley Bruins Signed-off-by: Christian Brabandt --- runtime/ftplugin/zimbu.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/runtime/ftplugin/zimbu.vim b/runtime/ftplugin/zimbu.vim index 2ce08e5ca4..1b5caf6a3b 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 -" Last Change: 2023 Aug 10 +" Last Change: 2025 Jun 08 " Former Maintainer: Bram Moolenaar +" 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 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