Skip to content

Commit b326e13

Browse files
author
Bruno Sutic
committed
Change the default manpage width to be the width of the screen
1 parent 2924184 commit b326e13

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

autoload/man/helpers.vim

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,13 @@ endfunction
8888
" }}}
8989
" man#helpers#manwidth {{{1
9090

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.
91+
" Default manpage width is the width of the screen. Change this with
92+
" 'g:man_width'. Example: 'let g:man_width = 120'.
9493
function! man#helpers#manwidth()
9594
if exists('g:man_width')
96-
return g:man_width ==# 0 ? winwidth(0) : g:man_width
95+
return g:man_width
9796
else
98-
return 80
97+
return winwidth(0)
9998
end
10099
endfunction
101100

0 commit comments

Comments
 (0)