runtime(man): honor cmd modifiers before g:ft_man_open_mode

Give priority to (placement) command modifiers, specifically
`:vertical`, `:horizontal` and `:tab`, ahead of `g:ft_man_open_mode`,
so that if the user says e.g. `:vert Man`, Vim does the expected thing.

closes: #15117

Signed-off-by: Ivan Shapovalov <intelfx@intelfx.name>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ivan Shapovalov
2024-07-06 16:56:02 +02:00
committed by Christian Brabandt
parent f21ca6d1f1
commit 84ca1388d8
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,7 @@
" Maintainer: SungHyun Nam <goweol@gmail.com>
" Autoload Split: Bram Moolenaar
" Last Change: 2024 Jun 06 (disabled the q mapping, #8210)
" 2024 Jul 06 (use nnoremap, #15130)
" To make the ":Man" command available before editing a manual page, source
" this script from your startup vimrc file.