runtime(postscr): set commentstring option in ftplugin Commit: https://github.com/vim/vim/commit/9e9fe664371e8a8523ba30edb9c6f71610511acb Author: Riley Bruins <ribr...@hotmail.com> Date: Mon Jun 9 21:08:33 2025 +0200
runtime(postscr): set commentstring option in ftplugin closes: https://github.com/vim/vim/issues/17486 Signed-off-by: Riley Bruins <ribr...@hotmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/ftplugin/postscr.vim b/runtime/ftplugin/postscr.vim index b4c5e0632..eb53b38f0 100644 --- a/runtime/ftplugin/postscr.vim +++ b/runtime/ftplugin/postscr.vim @@ -3,6 +3,7 @@ " Maintainer: Mike Williams <m...@eandem.co.uk> " Last Change: 24th April 2012 " 2024 Jan 14 by Vim Project (browsefilter) +" 2025 Jun 08 by Riley Bruins <ribr...@gmail.com> ('commentstring') " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -17,6 +18,7 @@ set cpo&vim " PS comment formatting setlocal comments=b:% +setlocal commentstring=%\ %s setlocal formatoptions-=t formatoptions+=rol " Define patterns for the matchit macro @@ -36,7 +38,7 @@ if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") endif endif -let b:undo_ftplugin = "setlocal comments< formatoptions<" +let b:undo_ftplugin = "setlocal comments< commentstring< formatoptions<" \ . "| unlet! b:browsefilter b:match_ignorecase b:match_words" let &cpo = s:cpo_save -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uOhxY-009tdK-8a%40256bit.org.