diff options
| author | Curtis McEnroe <june@causal.agency> | 2019-02-20 12:15:41 -0500 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-02-21 00:06:26 +0100 |
| commit | 40f5a6c4dafe4bbca227d4c6bda0d9a94d817d71 (patch) | |
| tree | b598e8fd5eb958ed1440ba9db2cba908fca546a7 /runtime/autoload | |
| parent | ece19b459c082eae05b5c480f6ee91181f002c02 (diff) | |
| download | rneovim-40f5a6c4dafe4bbca227d4c6bda0d9a94d817d71.tar.gz rneovim-40f5a6c4dafe4bbca227d4c6bda0d9a94d817d71.tar.bz2 rneovim-40f5a6c4dafe4bbca227d4c6bda0d9a94d817d71.zip | |
man.vim: g:man_hardwrap #9633
This option allows restoring the behaviour prior to #9023.
Fixes #9583
Closes #9633
Diffstat (limited to 'runtime/autoload')
| -rw-r--r-- | runtime/autoload/man.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index 41c2f5a405..153f1afed8 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -150,8 +150,9 @@ endfunction function! s:get_page(path) abort " Disable hard-wrap by using a big $MANWIDTH (max 1000 on some systems #9065). - " We use soft wrap: ftplugin/man.vim sets wrap/breakindent/…. - let manwidth = 999 + " Soft-wrap: ftplugin/man.vim sets wrap/breakindent/…. + " Hard-wrap: driven by `man`. + let manwidth = !get(g:,'man_hardwrap') ? 999 : (empty($MANWIDTH) ? winwidth(0) : $MANWIDTH) " 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. |