Bug#827634: ftplugin/man.vim: Does not handle window narrower than terminal width
Josh Triplett
josh at joshtriplett.org
Sun Jun 19 17:53:29 UTC 2016
On Sun, Jun 19, 2016 at 12:49:24PM -0400, James McCoy wrote:
> On Sat, Jun 18, 2016 at 03:41:35PM -0700, Josh Triplett wrote:
> > The :Man command, provided by /usr/share/vim/vim74/ftplugin/man.vim,
> > always renders the manpage at the width of the terminal, not the width
> > of the man window in vim.
>
> Actually, it seems to use the width of your window at the time that the
> script is sourced.
Looks like the width of the window the first time you invoke :Man, yeah.
So it doesn't adapt if you resize the Vim window *or* the buffer.
> > Ideally, I'd love to see the manpage re-rendered when the width changes
> > (or perhaps with C-l or similar), but at a minimum :Man should take the
> > current window width into account.
>
> Yes, it should use the width of the window at the time the command is
> run.
Sounds good.
More information about the pkg-vim-maintainers
mailing list