From 9081cad514d27ed67f0e348e9db56eddb296cc1d Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 20 Sep 2018 18:44:48 +0300 Subject: man.vim: Ignore $MANWIDTH, use soft wrap #9023 fix #9017 close #9023 --- runtime/autoload/man.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime/autoload') diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index 7385862c0b..69bdcd30e1 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -149,8 +149,9 @@ function! s:system(cmd, ...) abort endfunction function! s:get_page(path) abort - " Respect $MANWIDTH or default to window width. - let manwidth = empty($MANWIDTH) ? winwidth(0) : $MANWIDTH + " Disable hard-wrap by setting $MANWIDTH to a high value. + " Use soft wrap instead (ftplugin/man.vim sets 'wrap', 'breakindent'). + let manwidth = 9999 " Force MANPAGER=cat to ensure Vim is not recursively invoked (by man-db). " http://comments.gmane.org/gmane.editors.vim.devel/29085 " Set MAN_KEEP_FORMATTING so Debian man doesn't discard backspaces. -- cgit