Update runtime files.

This commit is contained in:
Bram Moolenaar
2017-01-28 18:34:47 +01:00
parent 3a29abcb61
commit 690afe1fef
19 changed files with 298 additions and 186 deletions

View File

@ -1,7 +1,7 @@
" Vim filetype plugin file
" Language: man
" Maintainer: SungHyun Nam <goweol@gmail.com>
" Last Change: 2017 Jan 04
" Last Change: 2017 Jan 18
" To make the ":Man" command available before editing a manual page, source
" this script from your startup vimrc file.
@ -97,7 +97,7 @@ func <SID>GetCmdArg(sect, page)
endfunc
func <SID>FindPage(sect, page)
let where = system("/usr/bin/man ".s:man_find_arg.' '.s:GetCmdArg(a:sect, a:page))
let where = system("man ".s:man_find_arg.' '.s:GetCmdArg(a:sect, a:page))
if where !~ "^/"
if matchstr(where, " [^ ]*$") !~ "^ /"
return 0
@ -176,7 +176,7 @@ func <SID>GetPage(...)
let $MANWIDTH = winwidth(0)
let unsetwidth = 1
endif
silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b"
silent exec "r !man ".s:GetCmdArg(sect, page)." | col -b"
if unsetwidth
let $MANWIDTH = ''
endif