Update runtime files

This commit is contained in:
Bram Moolenaar
2022-10-03 18:04:35 +01:00
parent eb47d6d20a
commit f269eabc6c
22 changed files with 281 additions and 187 deletions

View File

@ -1,6 +1,6 @@
" Vim plugin for using Vim as manpager.
" Maintainer: Enno Nagel <ennonagel+vim@gmail.com>
" Last Change: 2022 Jun 17
" Last Change: 2022 Sep 30
" Set up the current buffer (likely read from stdin) as a manpage
command MANPAGER call s:ManPager()
@ -18,9 +18,6 @@ function s:ManPager()
" Make this an unlisted, readonly scratch buffer
setlocal buftype=nofile noswapfile bufhidden=hide nobuflisted readonly
" Is this useful? Should allow for using K on word with a colon.
setlocal iskeyword+=:
" Ensure text width matches window width
setlocal foldcolumn& nofoldenable nonumber norelativenumber
@ -44,6 +41,6 @@ function s:ManPager()
setlocal nomodified nomodifiable
" Set filetype to man even if ftplugin is disabled
setlocal iskeyword+=: filetype=man
setlocal filetype=man
runtime ftplugin/man.vim
endfunction