aboutsummaryrefslogtreecommitdiff
path: root/runtime/autoload/man.vim
diff options
context:
space:
mode:
authorAnmol Sethi <hi@nhooyr.io>2019-11-24 19:55:38 -0500
committerAnmol Sethi <hi@nhooyr.io>2019-11-24 20:31:46 -0500
commit4ce96e497909505b6253e987812e24e8fa08daec (patch)
tree81a15a65be3debaecd7ab0b4f161a7e8095c9ece /runtime/autoload/man.vim
parent078f279691f7d2b87128f7abc932634027d6dbd5 (diff)
downloadrneovim-4ce96e497909505b6253e987812e24e8fa08daec.tar.gz
rneovim-4ce96e497909505b6253e987812e24e8fa08daec.tar.bz2
rneovim-4ce96e497909505b6253e987812e24e8fa08daec.zip
man.vim: Hard wrap by default
Closes #11436
Diffstat (limited to 'runtime/autoload/man.vim')
-rw-r--r--runtime/autoload/man.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim
index 36f42c0003..0777d2202f 100644
--- a/runtime/autoload/man.vim
+++ b/runtime/autoload/man.vim
@@ -139,7 +139,7 @@ function! s:get_page(path) abort
" Disable hard-wrap by using a big $MANWIDTH (max 1000 on some systems #9065).
" 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)
+ let manwidth = !get(g:,'man_hardwrap', 1) ? 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.