diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-01 01:49:43 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-01 01:49:43 -0500 |
commit | e2231bc372831910c6c02efc189e4c2f384149b1 (patch) | |
tree | 0be7d8aebbb44f7098d24af5e5015dcdb8f80104 | |
parent | 1d995bb35706c67b87280244fce6ebdcd2e7acb5 (diff) | |
parent | 948361760cec2b3d570cf11af98df368bac8c514 (diff) | |
download | rneovim-e2231bc372831910c6c02efc189e4c2f384149b1.tar.gz rneovim-e2231bc372831910c6c02efc189e4c2f384149b1.tar.bz2 rneovim-e2231bc372831910c6c02efc189e4c2f384149b1.zip |
Merge pull request #4144 from george-b/manwidth
Respect $MANWIDTH
-rw-r--r-- | runtime/autoload/man.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index d481d9eaf0..49663d7e5a 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -75,7 +75,9 @@ function man#get_page(...) abort setlocal modifiable silent keepjumps norm! 1G"_dG - let $MANWIDTH = winwidth(0) + if empty($MANWIDTH) + let $MANWIDTH = winwidth(0) + endif silent exec 'r!/usr/bin/man '.s:cmd(sect, page).' | col -b' " Remove blank lines from top and bottom. while getline(1) =~ '^\s*$' |