diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-11 20:58:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-11 20:58:53 +0100 |
commit | 7f2e9d7c9cdfc5201a899b7b610edf64bf80c45f (patch) | |
tree | 85ad7f51ba627b2d739d58213093f4c4e51e08e5 /runtime/ftplugin/man.vim | |
parent | 13e904199c2af6aac9b289a7f520d8e16f6e478a (diff) | |
download | vim-7f2e9d7c9cdfc5201a899b7b610edf64bf80c45f.zip |
Update runtime files.
Diffstat (limited to 'runtime/ftplugin/man.vim')
-rw-r--r-- | runtime/ftplugin/man.vim | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index c7fc3bbdf..cfcabc3fb 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: 2017 Jan 18 +" Last Change: 2017 Nov 11 " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -15,12 +15,6 @@ if &filetype == "man" endif let b:did_ftplugin = 1 - " Ensure Vim is not recursively invoked (man-db does this) - " when doing ctrl-[ on a man page reference. - if exists("$MANPAGER") - let $MANPAGER = "" - endif - " allow dot and dash in manual page name. setlocal iskeyword+=\.,- @@ -176,7 +170,11 @@ func <SID>GetPage(...) let $MANWIDTH = winwidth(0) let unsetwidth = 1 endif - silent exec "r !man ".s:GetCmdArg(sect, page)." | col -b" + + " Ensure Vim is not recursively invoked (man-db does this) when doing ctrl-[ + " on a man page reference by unsetting MANPAGER. + silent exec "r !env -u MANPAGER man ".s:GetCmdArg(sect, page)." | col -b" + if unsetwidth let $MANWIDTH = '' endif |