Mercurial > vim
comparison runtime/ftplugin/man.vim @ 18186:03b854983b14
Update runtime files.
Commit: https://github.com/vim/vim/commit/5be4ceecea5520265066eac972460ebb1cdf05e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 27 19:34:08 2019 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Sep 2019 19:45:06 +0200 |
parents | d9aa921b7198 |
children | 350e1d3131d8 |
comparison
equal
deleted
inserted
replaced
18185:75f204e14e28 | 18186:03b854983b14 |
---|---|
1 " Vim filetype plugin file | 1 " Vim filetype plugin file |
2 " Language: man | 2 " Language: man |
3 " Maintainer: SungHyun Nam <goweol@gmail.com> | 3 " Maintainer: SungHyun Nam <goweol@gmail.com> |
4 " Last Change: 2019 Jul 22 | 4 " Last Change: 2019 Sep 26 |
5 " (fix by Jason Franklin) | 5 " (fix by Jason Franklin) |
6 | 6 |
7 " To make the ":Man" command available before editing a manual page, source | 7 " To make the ":Man" command available before editing a manual page, source |
8 " this script from your startup vimrc file. | 8 " this script from your startup vimrc file. |
9 | 9 |
130 " To support: nmap K :Man <cword> | 130 " To support: nmap K :Man <cword> |
131 if page == '<cword>' | 131 if page == '<cword>' |
132 let page = expand('<cword>') | 132 let page = expand('<cword>') |
133 endif | 133 endif |
134 | 134 |
135 if sect != "" && s:FindPage(sect, page) == 0 | 135 if !exists('g:ft_man_no_sect_fallback') || (g:ft_man_no_sect_fallback == 0) |
136 let sect = "" | 136 if sect != "" && s:FindPage(sect, page) == 0 |
137 let sect = "" | |
138 endif | |
137 endif | 139 endif |
138 if s:FindPage(sect, page) == 0 | 140 if s:FindPage(sect, page) == 0 |
139 echo "\nCannot find a '".page."'." | 141 let msg = "\nNo manual entry for ".page |
142 if sect != "" | |
143 let msg .= " in section ".sect | |
144 endif | |
145 echo msg | |
140 return | 146 return |
141 endif | 147 endif |
142 exec "let s:man_tag_buf_".s:man_tag_depth." = ".bufnr("%") | 148 exec "let s:man_tag_buf_".s:man_tag_depth." = ".bufnr("%") |
143 exec "let s:man_tag_lin_".s:man_tag_depth." = ".line(".") | 149 exec "let s:man_tag_lin_".s:man_tag_depth." = ".line(".") |
144 exec "let s:man_tag_col_".s:man_tag_depth." = ".col(".") | 150 exec "let s:man_tag_col_".s:man_tag_depth." = ".col(".") |