We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2924184 commit b326e13Copy full SHA for b326e13
autoload/man/helpers.vim
@@ -88,14 +88,13 @@ endfunction
88
" }}}
89
" man#helpers#manwidth {{{1
90
91
-" Default manpage width is 80 characters. Change this with 'g:man_width',
92
-" example: 'let g:man_width = 120'.
93
-" If g:man_width is set to 0, the width of the current vim window is used.
+" Default manpage width is the width of the screen. Change this with
+" 'g:man_width'. Example: 'let g:man_width = 120'.
94
function! man#helpers#manwidth()
95
if exists('g:man_width')
96
- return g:man_width ==# 0 ? winwidth(0) : g:man_width
+ return g:man_width
97
else
98
- return 80
+ return winwidth(0)
99
end
100
endfunction
101
0 commit comments