diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-21 17:38:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-21 17:38:25 +0200 |
commit | f895b47d3f935b74ed982b06a73a7265cf06e960 (patch) | |
tree | ecc261a14953d45aa8f0585de3fd01409d4ebd25 /runtime/plugin | |
parent | b227a3c8d35b28a8bfcbbdd593deb6524a37a77f (diff) | |
download | rneovim-f895b47d3f935b74ed982b06a73a7265cf06e960.tar.gz rneovim-f895b47d3f935b74ed982b06a73a7265cf06e960.tar.bz2 rneovim-f895b47d3f935b74ed982b06a73a7265cf06e960.zip |
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
Diffstat (limited to 'runtime/plugin')
-rw-r--r-- | runtime/plugin/man.vim | 4 |
1 files changed, 3 insertions, 1 deletions
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, <q-mods>, <f-args>) +command! -bang -bar -range=0 -complete=customlist,man#complete -nargs=* Man + \ if <bang>0 | set ft=man | + \ else | call man#open_page(v:count, v:count1, <q-mods>, <f-args>) | endif augroup man autocmd! |