aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-08-26 02:19:52 -0700
committerGitHub <noreply@github.com>2021-08-26 02:19:52 -0700
commit2548a9e18037339c4c502d971bdeaf909b82a739 (patch)
tree26d64f77b584c2976334cc9cdfc29ea75afe605a /runtime/plugin
parent8d62f5fd58d421edb39b66fd8b350325120b3cd6 (diff)
downloadrneovim-2548a9e18037339c4c502d971bdeaf909b82a739.tar.gz
rneovim-2548a9e18037339c4c502d971bdeaf909b82a739.tar.bz2
rneovim-2548a9e18037339c4c502d971bdeaf909b82a739.zip
fix(man.vim): filetype=man is too eager #15488
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
Diffstat (limited to 'runtime/plugin')
-rw-r--r--runtime/plugin/man.vim2
1 files changed, 1 insertions, 1 deletions
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 <bang>0 | set ft=man |
+ \ if <bang>0 | call man#init_pager() |
\ else | call man#open_page(<count>, <q-mods>, <f-args>) | endif
augroup man