comparison runtime/plugin/manpager.vim @ 30634:f68f43043842

Update runtime files Commit: https://github.com/vim/vim/commit/f269eabc6c4f5bdcef989cd5b4b95ba8ccaa4d8a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 3 18:04:35 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Mon, 03 Oct 2022 19:15:04 +0200
parents 1e9e9d89f0ee
children eb2638f278bf
comparison
equal deleted inserted replaced
30633:a7462ca00059 30634:f68f43043842
1 " Vim plugin for using Vim as manpager. 1 " Vim plugin for using Vim as manpager.
2 " Maintainer: Enno Nagel <ennonagel+vim@gmail.com> 2 " Maintainer: Enno Nagel <ennonagel+vim@gmail.com>
3 " Last Change: 2022 Jun 17 3 " Last Change: 2022 Sep 30
4 4
5 " Set up the current buffer (likely read from stdin) as a manpage 5 " Set up the current buffer (likely read from stdin) as a manpage
6 command MANPAGER call s:ManPager() 6 command MANPAGER call s:ManPager()
7 7
8 function s:ManPager() 8 function s:ManPager()
15 endif 15 endif
16 syntax on 16 syntax on
17 17
18 " Make this an unlisted, readonly scratch buffer 18 " Make this an unlisted, readonly scratch buffer
19 setlocal buftype=nofile noswapfile bufhidden=hide nobuflisted readonly 19 setlocal buftype=nofile noswapfile bufhidden=hide nobuflisted readonly
20
21 " Is this useful? Should allow for using K on word with a colon.
22 setlocal iskeyword+=:
23 20
24 " Ensure text width matches window width 21 " Ensure text width matches window width
25 setlocal foldcolumn& nofoldenable nonumber norelativenumber 22 setlocal foldcolumn& nofoldenable nonumber norelativenumber
26 23
27 " In case Vim was invoked with -M 24 " In case Vim was invoked with -M
42 39
43 " Finished preprocessing the buffer, prevent any further modifications 40 " Finished preprocessing the buffer, prevent any further modifications
44 setlocal nomodified nomodifiable 41 setlocal nomodified nomodifiable
45 42
46 " Set filetype to man even if ftplugin is disabled 43 " Set filetype to man even if ftplugin is disabled
47 setlocal iskeyword+=: filetype=man 44 setlocal filetype=man
48 runtime ftplugin/man.vim 45 runtime ftplugin/man.vim
49 endfunction 46 endfunction