From f895b47d3f935b74ed982b06a73a7265cf06e960 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 21 Oct 2018 17:38:25 +0200 Subject: man.vim: :Man! operates on buffer contents (#9139) mandoc may not handle quoted MANPAGER arguments correctly. E.g. with export MANPAGER='nvim -u NORC -c "set ft=man"' mandoc treats `"set` and `ft=man"'` as separate tokens. To workaround that, provide :Man! so that MANPAGER can avoid quoting. closes #9120 --- runtime/plugin/man.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/plugin/man.vim') diff --git a/runtime/plugin/man.vim b/runtime/plugin/man.vim index 7bccd4a3b9..e18a5528bb 100644 --- a/runtime/plugin/man.vim +++ b/runtime/plugin/man.vim @@ -5,7 +5,9 @@ if exists('g:loaded_man') endif let g:loaded_man = 1 -command! -bar -range=0 -complete=customlist,man#complete -nargs=* Man call man#open_page(v:count, v:count1, , ) +command! -bang -bar -range=0 -complete=customlist,man#complete -nargs=* Man + \ if 0 | set ft=man | + \ else | call man#open_page(v:count, v:count1, , ) | endif augroup man autocmd! -- cgit