From cbebd4879cc78e670d79b2c57dc33d7b911c962a Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 7 Feb 2016 23:02:56 +0100 Subject: Updated runtime files. --- runtime/ftplugin/man.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 24bcdd0e6..43f343a6b 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: man " Maintainer: SungHyun Nam -" 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 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*$' -- cgit v1.2.1