From b6b12ea7c3f2a5ac18d92efc5e4ef814971dfdef Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 26 Aug 2021 02:50:30 -0700 Subject: fix(man.vim): filetype=man is too eager #15489 Problem: "set filetype=man" assumes the user wants :Man features, this does extra stuff like renaming the buffer as "man://". Solution: - old entrypoint was ":set filetype=man", but this is too presumptuous #15487 - make the entrypoints more explicit: 1. when the ":Man" command is run 2. when a "man://" buffer is opened - remove the tricky b:man_sect checks in ftplugin/man.vim and syntax/man.vim - MANPAGER is supported via ":Man!", as documented. fixes #15487 --- runtime/plugin/man.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/plugin') diff --git a/runtime/plugin/man.vim b/runtime/plugin/man.vim index 689aa32ef3..f814fbad3b 100644 --- a/runtime/plugin/man.vim +++ b/runtime/plugin/man.vim @@ -6,7 +6,7 @@ endif let g:loaded_man = 1 command! -bang -bar -range=-1 -complete=customlist,man#complete -nargs=* Man - \ if 0 | set ft=man | + \ if 0 | call man#init_pager() | \ else | call man#open_page(, , ) | endif augroup man -- cgit