comparison runtime/ftplugin/man.vim @ 20753:661eb972cb22

Update runtime files Commit: https://github.com/vim/vim/commit/acc224064033e5cea21ef7f1eefb356ca06ff11d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 7 21:07:18 2020 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jun 2020 21:15:04 +0200
parents 2334bf788e8a
children 5b7ea82bc18f
comparison
equal deleted inserted replaced
20752:47b5de84b7f7 20753:661eb972cb22
1 " Vim filetype plugin file 1 " Vim filetype plugin file
2 " Language: man 2 " Language: man
3 " Maintainer: Jason Franklin <vim@justemail.net> 3 " Maintainer: Jason Franklin <vim@justemail.net>
4 " Maintainer: SungHyun Nam <goweol@gmail.com> 4 " Maintainer: SungHyun Nam <goweol@gmail.com>
5 " Last Change: 2020 May 07 5 " Last Change: 2020 Jun 01
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
10 " If 'filetype' isn't "man", we must have been called to only define ":Man". 10 " If 'filetype' isn't "man", we must have been called to only define ":Man".
32 let b:undo_ftplugin = b:undo_ftplugin 32 let b:undo_ftplugin = b:undo_ftplugin
33 \ . '|silent! nunmap <buffer> <LocalLeader>h' 33 \ . '|silent! nunmap <buffer> <LocalLeader>h'
34 endif 34 endif
35 nnoremap <buffer> <Plug>ManBS :%s/.\b//g<CR>:setl nomod<CR>'' 35 nnoremap <buffer> <Plug>ManBS :%s/.\b//g<CR>:setl nomod<CR>''
36 36
37 nnoremap <buffer> <c-]> :call <SID>PreGetPage(v:count)<CR> 37 nnoremap <buffer> <silent> <c-]> :call <SID>PreGetPage(v:count)<CR>
38 nnoremap <buffer> <c-t> :call <SID>PopPage()<CR> 38 nnoremap <buffer> <silent> <c-t> :call <SID>PopPage()<CR>
39 nnoremap <buffer> <silent> q :q<CR> 39 nnoremap <buffer> <silent> q :q<CR>
40 40
41 " Add undo commands for the maps 41 " Add undo commands for the maps
42 let b:undo_ftplugin = b:undo_ftplugin 42 let b:undo_ftplugin = b:undo_ftplugin
43 \ . '|silent! nunmap <buffer> <Plug>ManBS' 43 \ . '|silent! nunmap <buffer> <Plug>ManBS'
136 if sect != "" && s:FindPage(sect, page) == 0 136 if sect != "" && s:FindPage(sect, page) == 0
137 let sect = "" 137 let sect = ""
138 endif 138 endif
139 endif 139 endif
140 if s:FindPage(sect, page) == 0 140 if s:FindPage(sect, page) == 0
141 let msg = "\nNo manual entry for ".page 141 let msg = 'man.vim: no manual entry for "' . page . '"'
142 if sect != "" 142 if !empty(sect)
143 let msg .= " in section ".sect 143 let msg .= ' in section ' . sect
144 endif 144 endif
145 echo msg 145 echomsg msg
146 return 146 return
147 endif 147 endif
148 exec "let s:man_tag_buf_".s:man_tag_depth." = ".bufnr("%") 148 exec "let s:man_tag_buf_".s:man_tag_depth." = ".bufnr("%")
149 exec "let s:man_tag_lin_".s:man_tag_depth." = ".line(".") 149 exec "let s:man_tag_lin_".s:man_tag_depth." = ".line(".")
150 exec "let s:man_tag_col_".s:man_tag_depth." = ".col(".") 150 exec "let s:man_tag_col_".s:man_tag_depth." = ".col(".")