commit 93925fe0208fcd640eb6c5f2822f994a427f3795
parent 4387c26691c19f69be241f01f7d4a9dd6792f413
Author: Christian Clason <c.clason@uni-graz.at>
Date: Mon, 9 Jun 2025 22:35:13 +0200
vim-patch:446a98f: runtime(rpl): set commentstring option in ftplugin
closes: vim/vim#17487
https://github.com/vim/vim/commit/446a98f0b6a914d39773d4c6c4c8e08a55876d66
Co-authored-by: Riley Bruins <ribru17@hotmail.com>
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/runtime/ftplugin/rpl.vim b/runtime/ftplugin/rpl.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: RPL/2
" Maintainer: Joël BERTRAND <rpl2@free.fr>
-" Last Change: 2012 Mar 07
+" Last Change: 2025 Jun 08
" Version: 0.1
" Only do this when not done yet for this buffer
@@ -18,5 +18,6 @@ setlocal fo-=t fo+=croql
" Set 'comments' to format dashed lists in comments.
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
+setlocal commentstring=//\ %s
-let b:undo_ftplugin = "setlocal fo< comments<"
+let b:undo_ftplugin = "setlocal fo< comments< commentstring<"