Mercurial > vim
diff runtime/ftplugin/man.vim @ 7992:78106b0f2c56
commit https://github.com/vim/vim/commit/cbebd4879cc78e670d79b2c57dc33d7b911c962a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 7 23:02:56 2016 +0100
Updated runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 07 Feb 2016 23:15:05 +0100 |
parents | 17333ebd2bbd |
children | cd9c4bbe1d03 |
line wrap: on
line diff
--- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: man " Maintainer: SungHyun Nam <goweol@gmail.com> -" Last Change: 2015 Nov 24 +" Last Change: 2016 Feb 04 " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -160,7 +160,9 @@ func <SID>GetPage(...) setl ma nonu nornu nofen silent exec "norm 1GdG" - let $MANWIDTH = winwidth(0) + if empty($MANWIDTH) + let $MANWIDTH = winwidth(0) + endif silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b" " Remove blank lines from top and bottom. while getline(1) =~ '^\s*$'