diff options
-rw-r--r-- | runtime/autoload/man.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index 69bdcd30e1..8ca78f2782 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -167,6 +167,10 @@ function! s:put_page(page) abort while getline(1) =~# '^\s*$' silent keepjumps 1delete _ endwhile + " XXX: nroff justifies text by filling it with whitespace. That interacts + " badly with our use of $MANWIDTH=9999. Hack around this by using a fixed + " size for those whitespace regions. + silent! keeppatterns keepjumps %s/\s\{999,}/\=repeat(' ', 10)/g lua require("man").highlight_man_page() setlocal filetype=man endfunction |