From 2f5b8a009280eba995aecf67d1e8d99b7c72c51c Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Tue, 4 Jun 2024 09:39:28 +0200 Subject: vim-patch:9.1.0464: no whitespace padding in commentstring option in ftplugins Problem: no whitespace padding in commentstring option in ftplugins Solution: Change default to include whitespace padding, update existing filetype plugins with the new default value (Riley Bruins) closes: vim/vim#14843 https://github.com/vim/vim/commit/0a0830624a260660c7fa692ecb7e6e5de09114ba Co-authored-by: Riley Bruins --- runtime/ftplugin/vim.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/ftplugin/vim.vim') diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim index 5c99df7f5a..34412f8fec 100644 --- a/runtime/ftplugin/vim.vim +++ b/runtime/ftplugin/vim.vim @@ -2,6 +2,7 @@ " Language: Vim " Maintainer: Doug Kearns " Last Change: 2024 Apr 13 +" 2024 May 23 by Riley Bruins ('commentstring') " Former Maintainer: Bram Moolenaar " Only do this when not done yet for this buffer @@ -51,7 +52,7 @@ setlocal keywordprg=:help " Comments starts with # in Vim9 script. We have to guess which one to use. if "\n" .. getline(1, 32)->join("\n") =~# '\n\s*vim9\%[script]\>' - setlocal commentstring=#%s + setlocal commentstring=#\ %s else setlocal commentstring=\"%s endif -- cgit From 41b70a0dea4ddced39e8475e2ed61a8bec729939 Mon Sep 17 00:00:00 2001 From: Carman Fu <96031125+Futarimiti@users.noreply.github.com> Date: Fri, 26 Jul 2024 08:45:51 +0800 Subject: fix(runtime): set 'keywordprg' only once in vim ftplugin --- runtime/ftplugin/vim.vim | 3 --- 1 file changed, 3 deletions(-) (limited to 'runtime/ftplugin/vim.vim') diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim index 34412f8fec..b5e8e693f6 100644 --- a/runtime/ftplugin/vim.vim +++ b/runtime/ftplugin/vim.vim @@ -67,9 +67,6 @@ if &tw == 0 setlocal tw=78 endif -" Prefer Vim help instead of manpages. -setlocal keywordprg=:help - if !exists("no_plugin_maps") && !exists("no_vim_maps") let b:did_add_maps = 1 -- cgit