summaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-07 23:02:56 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-07 23:02:56 +0100
commitcbebd4879cc78e670d79b2c57dc33d7b911c962a (patch)
treedfb98d947f8dc2678d26f3170e02212d89f3276e /runtime/ftplugin
parentee5aeae22b8029fdb5ae97bb6ed8114a81e34c22 (diff)
downloadvim-git-cbebd4879cc78e670d79b2c57dc33d7b911c962a.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/man.vim6
1 files changed, 4 insertions, 2 deletions
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 <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*$'